Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.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.0009769/0.0009769, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0008986/0.0008986, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9387/0.9387, allocations: 173.4 MB / 201.1 MB, free: 9.367 MB / 186.7 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.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.Oscillator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 4 kB / 268 MB, free: 6.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/1.993e-05, allocations: 2.312 kB / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00547/0.00549, allocations: 7.135 MB / 275.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00924/0.01473, allocations: 10.13 MB / 285.2 MB, free: 5.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007594/0.01549, allocations: 122.6 kB / 285.4 MB, free: 5.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.01664, allocations: 0.6427 MB / 286 MB, free: 4.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002357/0.019, allocations: 1.252 MB / 287.3 MB, free: 3.109 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.02015, allocations: 0.6835 MB / 287.9 MB, free: 2.422 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1084/0.1286, allocations: 2.679 MB / 290.6 MB, free: 16.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004617/0.1291, allocations: 175.9 kB / 290.8 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.1305, allocations: 1.024 MB / 291.8 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006518/0.1311, allocations: 404.2 kB / 292.2 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.1313, allocations: 58.19 kB / 292.3 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.1328, allocations: 0.6897 MB / 293 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.133, allocations: 193.2 kB / 293.1 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000495/0.1335, allocations: 388.6 kB / 293.5 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.1352, allocations: 1.496 MB / 295 MB, free: 16.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1352, allocations: 1.219 kB / 295 MB, free: 16.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1352, allocations: 3.531 kB / 295 MB, free: 16.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.204e-05/0.1352, allocations: 0 / 295 MB, free: 16.34 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.002072/0.1373, allocations: 2.115 MB / 297.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.1373, allocations: 10.36 kB / 297.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002255/0.1376, allocations: 237.5 kB / 297.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.1388, allocations: 1.351 MB / 298.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.1389, allocations: 35 kB / 298.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.603e-05/0.1389, allocations: 49.11 kB / 298.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/0.1395, allocations: 383.3 kB / 299.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1395, allocations: 6.375 kB / 299.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.1395, allocations: 16.91 kB / 299.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.1396, allocations: 17.78 kB / 299.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003782/0.1399, allocations: 265.1 kB / 299.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.1419, allocations: 1.897 MB / 301.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003952/0.1423, allocations: 384.5 kB / 301.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.1426, allocations: 355.6 kB / 302.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003395/0.146, allocations: 2.625 MB / 304.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.1462, allocations: 227.2 kB / 305 MB, free: 13.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.134e-06/0.1462, allocations: 0 / 305 MB, free: 13.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=59): time 0.001731/0.148, allocations: 1.559 MB / 306.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.148, allocations: 62.97 kB / 306.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00093/0.1489, allocations: 1.423 MB / 308 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.149, allocations: 36.73 kB / 308 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003472/0.1493, allocations: 0.8268 MB / 308.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.177e-05/0.1494, allocations: 204.1 kB / 309.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1495, allocations: 133.7 kB / 309.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.162e-05/0.1495, allocations: 0.5026 MB / 309.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.1497, allocations: 112.4 kB / 309.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.1499, allocations: 346.7 kB / 310.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.1502, allocations: 0.5063 MB / 310.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1502, allocations: 0 / 310.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0006788/0.1509, allocations: 0.7679 MB / 311.4 MB, free: 9.426 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1509, allocations: 12.28 kB / 311.4 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.808e-05/0.151, allocations: 57.94 kB / 311.5 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002836/0.1513, allocations: 146.1 kB / 311.6 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.1515, allocations: 111 kB / 311.7 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.1528, allocations: 2.612 MB / 314.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.1531, allocations: 27.83 kB / 314.4 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.815e-05/0.1531, allocations: 36 kB / 314.4 MB, free: 7.02 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (57): * Single equations (assignments): 54 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.1533, allocations: 191.9 kB / 314.6 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.1534, allocations: 209.7 kB / 314.8 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007509/0.1541, allocations: 0.7163 MB / 315.5 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.1541, allocations: 4 kB / 315.5 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1541, allocations: 4 kB / 315.5 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.1542, allocations: 7.828 kB / 315.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.1548, allocations: 0.8059 MB / 316.3 MB, free: 5.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.751e-05/0.1548, allocations: 54.95 kB / 316.4 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.1549, allocations: 59.14 kB / 316.5 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002323/0.1552, allocations: 131.7 kB / 316.6 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.1552, allocations: 24.86 kB / 316.6 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.1564, allocations: 2.602 MB / 319.2 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1564, allocations: 3.5 kB / 319.2 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007268/0.1571, allocations: 0.8178 MB / 320 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.1573, allocations: 178.8 kB / 320.2 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.916e-05/0.1573, allocations: 8 kB / 320.2 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.1575, allocations: 15.98 kB / 320.2 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.555e-05/0.1576, allocations: 52.42 kB / 320.3 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.1576, allocations: 22.19 kB / 320.3 MB, free: 1.188 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005031/0.1581, allocations: 0.8107 MB / 321.1 MB, free: 396 kB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1581, allocations: 0 / 321.1 MB, free: 396 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006269/0.1587, allocations: 383.2 kB / 321.5 MB, free: 12 kB / 266.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 (30): * Single equations (assignments): 24 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006002/0.1593, allocations: 0.4941 MB / 322 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008065/0.1601, allocations: 0.7413 MB / 322.7 MB, free: 14.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1601, allocations: 0 / 322.7 MB, free: 14.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004659/0.1606, allocations: 0.5592 MB / 323.3 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005843/0.1612, allocations: 224.1 kB / 323.5 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.1636, allocations: 2.227 MB / 325.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001472/0.1637, allocations: 232.6 kB / 326 MB, free: 11.5 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003005/0.164, allocations: 187.2 kB / 326.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.104e-05/0.1641, allocations: 84.5 kB / 326.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of SimCode: time 8.02e-07/0.1641, allocations: 0 / 326.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of Templates: time 0.02128/0.1854, allocations: 16.12 MB / 342.3 MB, free: 11.29 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.095705145969987]