Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 73.64 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 150.2 kB / 24.49 MB, free: 3.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 173.4 MB / 201.1 MB, free: 12.67 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.06 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.08377, allocations: 52.17 MB / 371.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008573/0.09234, allocations: 6.918 MB / 378.5 MB, free: 388 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02057/0.1129, allocations: 16.66 MB / 395.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007101/0.1136, allocations: 98.88 kB / 395.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001872/0.1155, allocations: 0.7749 MB / 396 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004151/0.1196, allocations: 1.808 MB / 397.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002887/0.1225, allocations: 1.321 MB / 399.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004751/0.1273, allocations: 3.283 MB / 402.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.1276, allocations: 128.8 kB / 402.5 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007901/0.1284, allocations: 0.5911 MB / 403.1 MB, free: 7.594 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007646/0.1291, allocations: 0.5356 MB / 403.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.1292, allocations: 44 kB / 403.7 MB, free: 7.012 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002731/0.132, allocations: 1.167 MB / 404.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002418/0.1322, allocations: 170.8 kB / 405.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008368/0.133, allocations: 0.5007 MB / 405.6 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004284/0.1373, allocations: 2.241 MB / 407.8 MB, free: 2.922 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.1373, allocations: 0 / 407.8 MB, free: 2.922 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1373, allocations: 4 kB / 407.8 MB, free: 2.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.1373, allocations: 0 / 407.8 MB, free: 2.918 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.004457/0.1418, allocations: 1.991 MB / 409.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.1419, allocations: 12.92 kB / 409.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003649/0.1422, allocations: 198.7 kB / 410 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003026/0.1452, allocations: 1.253 MB / 411.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.1453, allocations: 16.66 kB / 411.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.1454, allocations: 39.88 kB / 411.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1469, allocations: 429.9 kB / 411.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.1469, allocations: 7.922 kB / 411.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/0.1469, allocations: 12 kB / 411.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.147, allocations: 7.984 kB / 411.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.1487, allocations: 478.4 kB / 412.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003954/0.1526, allocations: 1.425 MB / 413.6 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.1541, allocations: 351.4 kB / 414 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.1554, allocations: 369.8 kB / 414.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02379/0.1792, allocations: 6.969 MB / 421.3 MB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/0.1802, allocations: 251.2 kB / 421.6 MB, free: 4.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.996e-06/0.1802, allocations: 0 / 421.6 MB, free: 4.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.003557/0.1838, allocations: 0.7626 MB / 422.3 MB, free: 3.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.1838, allocations: 59.39 kB / 422.4 MB, free: 3.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002963/0.1868, allocations: 1.471 MB / 423.9 MB, free: 2.395 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.1869, allocations: 29.7 kB / 423.9 MB, free: 2.359 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/0.1879, allocations: 0.7271 MB / 424.6 MB, free: 1.629 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.1881, allocations: 99.2 kB / 424.7 MB, free: 1.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002908/0.1884, allocations: 130 kB / 424.8 MB, free: 1.398 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.1886, allocations: 325.9 kB / 425.2 MB, free: 1.074 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008585/0.1895, allocations: 164.9 kB / 425.3 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.1905, allocations: 358.8 kB / 425.7 MB, free: 484 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001971/0.1925, allocations: 0.5338 MB / 426.2 MB, free: 15.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.298e-06/0.1925, allocations: 4 kB / 426.2 MB, free: 15.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002736/0.1952, allocations: 0.7557 MB / 427 MB, free: 15.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.1953, allocations: 8 kB / 427 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/0.1954, allocations: 44 kB / 427 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005095/0.1959, allocations: 133.6 kB / 427.1 MB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007607/0.1966, allocations: 103.8 kB / 427.2 MB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.1977, allocations: 0.6811 MB / 427.9 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.1987, allocations: 75.58 kB / 428 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.1988, allocations: 36 kB / 428 MB, free: 13.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006663/0.1995, allocations: 273.7 kB / 428.3 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003494/0.1998, allocations: 198.7 kB / 428.5 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003209/0.2031, allocations: 0.7432 MB / 429.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.2031, allocations: 3.938 kB / 429.2 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.2031, allocations: 0 / 429.2 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.2031, allocations: 7.984 kB / 429.2 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003802/0.2069, allocations: 1.188 MB / 430.4 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.511e-05/0.207, allocations: 40 kB / 430.5 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000472/0.2074, allocations: 43.94 kB / 430.5 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004416/0.2079, allocations: 132.8 kB / 430.6 MB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.51e-05/0.208, allocations: 23.98 kB / 430.7 MB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.209, allocations: 0.6655 MB / 431.3 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.209, allocations: 0 / 431.3 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.2116, allocations: 0.7251 MB / 432.1 MB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007374/0.2123, allocations: 204.7 kB / 432.3 MB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.2125, allocations: 8 kB / 432.3 MB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008554/0.2134, allocations: 31.89 kB / 432.3 MB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.2136, allocations: 39.95 kB / 432.3 MB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.393e-05/0.2137, allocations: 32.11 kB / 432.4 MB, free: 9.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002233/0.2159, allocations: 0.9571 MB / 433.3 MB, free: 8.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2159, allocations: 0 / 433.3 MB, free: 8.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001468/0.2174, allocations: 331.6 kB / 433.6 MB, free: 8.203 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001417/0.2188, allocations: 0.5692 MB / 434.2 MB, free: 7.629 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.2211, allocations: 0.4965 MB / 434.7 MB, free: 7.121 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2211, allocations: 0 / 434.7 MB, free: 7.121 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.2224, allocations: 282.2 kB / 435 MB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.2248, allocations: 305.7 kB / 435.3 MB, free: 6.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005615/0.2304, allocations: 2.24 MB / 437.5 MB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008935/0.2313, allocations: 0.5628 MB / 438.1 MB, free: 3.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007898/0.2321, allocations: 199.9 kB / 438.3 MB, free: 3.449 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.2323, allocations: 92.48 kB / 438.4 MB, free: 3.359 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2323, allocations: 4 kB / 438.4 MB, free: 3.355 MB / 398.1 MB Notification: Performance of Templates: time 0.03625/0.2685, allocations: 19.46 MB / 457.8 MB, free: 136 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.117498483974487]