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.001459/0.001459, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001757/0.001757, allocations: 170.8 kB / 24.99 MB, free: 8.832 MB / 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.9421/0.9421, allocations: 177.1 MB / 205.3 MB, free: 5.602 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.232e-06/1.232e-06, allocations: 0 / 273 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.728e-05/1.852e-05, allocations: 2.312 kB / 273 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005639/0.005657, allocations: 7.137 MB / 280.2 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009351/0.01501, allocations: 10.14 MB / 290.3 MB, free: 480 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009203/0.01593, allocations: 126.6 kB / 290.4 MB, free: 352 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1158/0.1318, allocations: 0.6323 MB / 291.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002853/0.1346, allocations: 1.242 MB / 292.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.136, allocations: 0.6811 MB / 293 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002746/0.1387, allocations: 2.646 MB / 295.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003146/0.139, allocations: 176.4 kB / 295.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008324/0.1399, allocations: 0.7221 MB / 296.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/0.1402, allocations: 377.9 kB / 296.9 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.328e-05/0.1403, allocations: 55.94 kB / 297 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.1414, allocations: 0.6935 MB / 297.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.976e-05/0.1415, allocations: 191.3 kB / 297.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00034/0.1418, allocations: 378.5 kB / 298.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.1432, allocations: 1.482 MB / 299.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1432, allocations: 0 / 299.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1432, allocations: 0 / 299.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.1432, allocations: 4.625 kB / 299.7 MB, free: 12.92 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.001673/0.1448, allocations: 2.105 MB / 301.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.1449, allocations: 10.56 kB / 301.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.1451, allocations: 236.6 kB / 302 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.1462, allocations: 1.409 MB / 303.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.1463, allocations: 35.12 kB / 303.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.1463, allocations: 46.88 kB / 303.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.1468, allocations: 390.2 kB / 303.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1468, allocations: 3.938 kB / 303.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.1468, allocations: 18.09 kB / 303.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.1468, allocations: 18.2 kB / 304 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003596/0.1472, allocations: 261.6 kB / 304.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.1489, allocations: 1.907 MB / 306.1 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.1492, allocations: 371.5 kB / 306.5 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.1496, allocations: 361.9 kB / 306.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002463/0.152, allocations: 2.339 MB / 309.2 MB, free: 8.293 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.1523, allocations: 249.8 kB / 309.4 MB, free: 8.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 1.843e-06/0.1523, allocations: 0 / 309.4 MB, free: 8.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002235/0.1545, allocations: 1.892 MB / 311.3 MB, free: 6.992 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.1545, allocations: 63.84 kB / 311.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008028/0.1553, allocations: 1.407 MB / 312.8 MB, free: 5.504 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.1554, allocations: 35.95 kB / 312.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003385/0.1557, allocations: 0.8055 MB / 313.6 MB, free: 4.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.676e-05/0.1558, allocations: 231.5 kB / 313.8 MB, free: 4.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-05/0.1559, allocations: 131.9 kB / 314 MB, free: 4.293 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.1559, allocations: 0.5004 MB / 314.5 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.1561, allocations: 121.6 kB / 314.6 MB, free: 3.668 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1563, allocations: 318 kB / 314.9 MB, free: 3.281 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.1567, allocations: 0.5025 MB / 315.4 MB, free: 2.719 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1567, allocations: 0 / 315.4 MB, free: 2.719 MB / 266.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0007011/0.1574, allocations: 0.8022 MB / 316.2 MB, free: 1.941 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1574, allocations: 8 kB / 316.2 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.366e-05/0.1574, allocations: 60.62 kB / 316.3 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003149/0.1577, allocations: 159 kB / 316.4 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002223/0.1579, allocations: 114.2 kB / 316.5 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/0.1596, allocations: 2.753 MB / 319.3 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.1598, allocations: 27.98 kB / 319.3 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.1599, allocations: 28 kB / 319.4 MB, free: 14.71 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.000205/0.1601, allocations: 200.2 kB / 319.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.1602, allocations: 208.3 kB / 319.8 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009539/0.1612, allocations: 0.7944 MB / 320.5 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1612, allocations: 4 kB / 320.5 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1612, allocations: 4 kB / 320.6 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1612, allocations: 0 / 320.6 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006944/0.1619, allocations: 0.8215 MB / 321.4 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.584e-05/0.1619, allocations: 56 kB / 321.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.1621, allocations: 67.05 kB / 321.5 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002922/0.1624, allocations: 154.7 kB / 321.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.1624, allocations: 26.92 kB / 321.7 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001794/0.1642, allocations: 2.757 MB / 324.4 MB, free: 9.504 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1642, allocations: 0 / 324.4 MB, free: 9.504 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009525/0.1652, allocations: 0.8938 MB / 325.3 MB, free: 8.59 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.1653, allocations: 189 kB / 325.5 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.619e-05/0.1654, allocations: 8 kB / 325.5 MB, free: 8.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.1656, allocations: 12 kB / 325.5 MB, free: 8.387 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.1657, allocations: 59.77 kB / 325.6 MB, free: 8.332 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.1657, allocations: 27.98 kB / 325.6 MB, free: 8.305 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007881/0.1665, allocations: 0.7987 MB / 326.4 MB, free: 7.516 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1665, allocations: 0 / 326.4 MB, free: 7.516 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005992/0.1671, allocations: 406.2 kB / 326.8 MB, free: 7.121 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.0005476/0.1677, allocations: 0.4924 MB / 327.3 MB, free: 6.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008735/0.1685, allocations: 0.802 MB / 328.1 MB, free: 5.859 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1685, allocations: 0 / 328.1 MB, free: 5.859 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.1691, allocations: 0.608 MB / 328.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.1696, allocations: 222.4 kB / 328.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.1717, allocations: 2.257 MB / 331.2 MB, free: 2.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.1719, allocations: 232.7 kB / 331.4 MB, free: 2.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002905/0.1722, allocations: 187.3 kB / 331.6 MB, free: 2.293 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.938e-05/0.1723, allocations: 84.5 kB / 331.7 MB, free: 2.211 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1723, allocations: 0 / 331.7 MB, free: 2.211 MB / 282.7 MB Notification: Performance of Templates: time 0.01803/0.1903, allocations: 14.72 MB / 346.4 MB, free: 3.66 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.2005587110761553]