Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 161 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9568/0.9568, allocations: 177.1 MB / 205 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 273 MB, free: 1.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.726e-05/2.871e-05, allocations: 2.312 kB / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.006068/0.006097, allocations: 7.162 MB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009166/0.01526, allocations: 10.15 MB / 290.3 MB, free: 188 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008277/0.01609, allocations: 126.6 kB / 290.4 MB, free: 60 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1209/0.137, allocations: 0.6279 MB / 291 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003924/0.1409, allocations: 1.25 MB / 292.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.1428, allocations: 0.6839 MB / 293 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003615/0.1464, allocations: 2.714 MB / 295.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003397/0.1467, allocations: 168.5 kB / 295.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.1477, allocations: 0.7205 MB / 296.6 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005734/0.1483, allocations: 381.3 kB / 296.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.1484, allocations: 54.84 kB / 297 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.1499, allocations: 0.6978 MB / 297.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.1501, allocations: 183.5 kB / 297.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004678/0.1505, allocations: 386.3 kB / 298.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001956/0.1525, allocations: 1.481 MB / 299.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1525, allocations: 4.406 kB / 299.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1525, allocations: 0 / 299.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.048e-05/0.1525, allocations: 0 / 299.7 MB, free: 12.89 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002399/0.1549, allocations: 2.099 MB / 301.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.155, allocations: 9.625 kB / 301.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.1552, allocations: 241.7 kB / 302.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00158/0.1568, allocations: 1.407 MB / 303.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.1568, allocations: 36.86 kB / 303.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.639e-05/0.1569, allocations: 45.84 kB / 303.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.1576, allocations: 389.6 kB / 303.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1576, allocations: 3.938 kB / 303.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.1576, allocations: 15.53 kB / 304 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.1576, allocations: 18.89 kB / 304 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004762/0.1581, allocations: 264 kB / 304.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.1603, allocations: 1.905 MB / 306.1 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.1608, allocations: 378.5 kB / 306.5 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/0.1611, allocations: 357.4 kB / 306.9 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003184/0.1643, allocations: 2.334 MB / 309.2 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003058/0.1646, allocations: 241 kB / 309.4 MB, free: 7.984 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 2.084e-06/0.1646, allocations: 2.656 kB / 309.4 MB, free: 7.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002886/0.1675, allocations: 1.909 MB / 311.3 MB, free: 6.656 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.1676, allocations: 63.84 kB / 311.4 MB, free: 6.582 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.1687, allocations: 1.407 MB / 312.8 MB, free: 5.168 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.1687, allocations: 33.7 kB / 312.8 MB, free: 5.129 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004335/0.1691, allocations: 0.8096 MB / 313.7 MB, free: 4.312 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.1692, allocations: 226.6 kB / 313.9 MB, free: 4.094 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1693, allocations: 131.9 kB / 314 MB, free: 3.957 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.749e-05/0.1694, allocations: 0.5004 MB / 314.5 MB, free: 3.449 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.1695, allocations: 125.5 kB / 314.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.1697, allocations: 317.6 kB / 314.9 MB, free: 2.945 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.1701, allocations: 0.5018 MB / 315.4 MB, free: 2.383 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1701, allocations: 3.188 kB / 315.4 MB, free: 2.383 MB / 266.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.000699/0.1708, allocations: 0.7982 MB / 316.2 MB, free: 1.605 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1708, allocations: 4 kB / 316.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.8e-05/0.1709, allocations: 67.98 kB / 316.3 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003168/0.1712, allocations: 162.4 kB / 316.5 MB, free: 1.379 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.1714, allocations: 110.6 kB / 316.6 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.1732, allocations: 2.756 MB / 319.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.1734, allocations: 23.98 kB / 319.4 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.1734, allocations: 28 kB / 319.4 MB, free: 14.37 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002051/0.1737, allocations: 203.1 kB / 319.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.1738, allocations: 202.8 kB / 319.8 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009653/0.1748, allocations: 0.7842 MB / 320.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.1748, allocations: 4.875 kB / 320.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1748, allocations: 7 kB / 320.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1748, allocations: 3.984 kB / 320.6 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007397/0.1755, allocations: 0.8169 MB / 321.4 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.703e-05/0.1756, allocations: 63.98 kB / 321.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.1758, allocations: 63.89 kB / 321.5 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003084/0.1761, allocations: 159.2 kB / 321.7 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.1761, allocations: 20 kB / 321.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001846/0.178, allocations: 2.765 MB / 324.5 MB, free: 9.168 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.178, allocations: 4 kB / 324.5 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009513/0.1789, allocations: 0.8965 MB / 325.4 MB, free: 8.254 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.1791, allocations: 174.8 kB / 325.5 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.891e-05/0.1792, allocations: 15.98 kB / 325.5 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.1794, allocations: 12 kB / 325.6 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.1795, allocations: 52.41 kB / 325.6 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.1795, allocations: 27.98 kB / 325.6 MB, free: 7.977 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006642/0.1802, allocations: 0.7987 MB / 326.4 MB, free: 7.188 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1802, allocations: 0 / 326.4 MB, free: 7.188 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007175/0.1809, allocations: 399.2 kB / 326.8 MB, free: 6.797 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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): 1 system {(4,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006159/0.1815, allocations: 0.4986 MB / 327.3 MB, free: 6.352 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009145/0.1824, allocations: 0.7954 MB / 328.1 MB, free: 5.531 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1824, allocations: 1.062 kB / 328.1 MB, free: 5.531 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005433/0.183, allocations: 0.6118 MB / 328.7 MB, free: 4.898 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.1836, allocations: 227.1 kB / 329 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.186, allocations: 2.254 MB / 331.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.1861, allocations: 232.7 kB / 331.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003092/0.1864, allocations: 187.2 kB / 331.6 MB, free: 1.949 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.65e-05/0.1865, allocations: 84.5 kB / 331.7 MB, free: 1.867 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.1865, allocations: 0 / 331.7 MB, free: 1.867 MB / 282.7 MB Notification: Performance of Templates: time 0.02198/0.2085, allocations: 14.72 MB / 346.4 MB, free: 3.32 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.368038190063089]