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.00136/0.00136, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001655/0.001655, allocations: 151 kB / 24.8 MB, free: 8.941 MB / 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.9257/0.9257, allocations: 173.4 MB / 201.4 MB, free: 9.215 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 1.152e-06/1.152e-06, allocations: 0 / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.625e-05/1.74e-05, allocations: 2.312 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005095/0.005112, allocations: 6.987 MB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.01578, allocations: 9.939 MB / 285.3 MB, free: 5.219 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.01688, allocations: 122.6 kB / 285.4 MB, free: 5.098 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001547/0.01843, allocations: 0.6427 MB / 286.1 MB, free: 4.449 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00296/0.02139, allocations: 1.252 MB / 287.3 MB, free: 3.188 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.02304, allocations: 0.6835 MB / 288 MB, free: 2.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1143/0.1373, allocations: 2.686 MB / 290.7 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004131/0.1378, allocations: 170.8 kB / 290.9 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.1391, allocations: 1.023 MB / 291.9 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005146/0.1396, allocations: 405.7 kB / 292.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000128/0.1397, allocations: 54.25 kB / 292.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.141, allocations: 0.6924 MB / 293 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.1411, allocations: 189 kB / 293.2 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003585/0.1415, allocations: 393.1 kB / 293.6 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.1431, allocations: 1.496 MB / 295.1 MB, free: 16.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1431, allocations: 2.344 kB / 295.1 MB, free: 16.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1431, allocations: 0 / 295.1 MB, free: 16.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.688e-05/0.1431, allocations: 0.75 kB / 295.1 MB, free: 16.55 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.002041/0.1451, allocations: 2.13 MB / 297.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.1452, allocations: 11.09 kB / 297.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002685/0.1454, allocations: 239.5 kB / 297.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.1467, allocations: 1.354 MB / 298.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.1468, allocations: 36.69 kB / 298.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/0.1468, allocations: 45.02 kB / 298.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.1473, allocations: 346.5 kB / 299.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1473, allocations: 3.938 kB / 299.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.1473, allocations: 16.27 kB / 299.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.1473, allocations: 19.88 kB / 299.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.1476, allocations: 218.5 kB / 299.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.1493, allocations: 1.665 MB / 301.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.1496, allocations: 348.5 kB / 301.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.1499, allocations: 317.9 kB / 301.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003226/0.1531, allocations: 2.639 MB / 304.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.1533, allocations: 207.7 kB / 304.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.044e-06/0.1533, allocations: 0 / 304.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=59): time 0.001296/0.1546, allocations: 1.218 MB / 305.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.1546, allocations: 67.28 kB / 305.9 MB, free: 13.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007558/0.1554, allocations: 1.395 MB / 307.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.1554, allocations: 38.39 kB / 307.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003676/0.1558, allocations: 0.8525 MB / 308.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.98e-05/0.1559, allocations: 209.7 kB / 308.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.156, allocations: 133.8 kB / 308.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.613e-05/0.156, allocations: 0.5118 MB / 309.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.816e-05/0.1561, allocations: 89 kB / 309.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.1563, allocations: 319.2 kB / 309.5 MB, free: 11.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002937/0.1565, allocations: 477.9 kB / 309.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1565, allocations: 2.875 kB / 309.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0006054/0.1572, allocations: 0.7112 MB / 310.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1572, allocations: 11.41 kB / 310.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-05/0.1572, allocations: 57.59 kB / 310.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002371/0.1575, allocations: 135.7 kB / 310.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.1577, allocations: 112.8 kB / 311 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.1589, allocations: 2.555 MB / 313.5 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.1591, allocations: 28.03 kB / 313.5 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.1591, allocations: 32.98 kB / 313.6 MB, free: 8.48 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.0001607/0.1593, allocations: 192.7 kB / 313.8 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.1594, allocations: 202.1 kB / 314 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006488/0.16, allocations: 0.6793 MB / 314.6 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.16, allocations: 4 kB / 314.6 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.16, allocations: 4 kB / 314.6 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.16, allocations: 0 / 314.6 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004855/0.1605, allocations: 0.5928 MB / 315.2 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.394e-05/0.1606, allocations: 55.7 kB / 315.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.1607, allocations: 59.66 kB / 315.4 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.1609, allocations: 129.2 kB / 315.5 MB, free: 6.867 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.1609, allocations: 20 kB / 315.5 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.1619, allocations: 2.544 MB / 318 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1619, allocations: 3.281 kB / 318 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005856/0.1625, allocations: 0.7518 MB / 318.8 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.1627, allocations: 182.8 kB / 319 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.952e-05/0.1628, allocations: 8 kB / 319 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.1629, allocations: 15.98 kB / 319 MB, free: 3.305 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.163, allocations: 48.42 kB / 319 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.163, allocations: 20 kB / 319.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000335/0.1634, allocations: 0.7632 MB / 319.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1634, allocations: 0 / 319.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005984/0.1639, allocations: 385.3 kB / 320.2 MB, free: 2.188 MB / 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.0004614/0.1644, allocations: 0.5064 MB / 320.7 MB, free: 1.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005464/0.165, allocations: 0.7056 MB / 321.4 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.165, allocations: 1.312 kB / 321.4 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003255/0.1653, allocations: 0.5362 MB / 322 MB, free: 476 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.1658, allocations: 225 kB / 322.2 MB, free: 256 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.1679, allocations: 2.223 MB / 324.4 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.168, allocations: 232.6 kB / 324.6 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000293/0.1683, allocations: 187.2 kB / 324.8 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003072/0.1686, allocations: 318.1 kB / 325.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1686, allocations: 0 / 325.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of Templates: time 0.02032/0.1889, allocations: 15.79 MB / 340.9 MB, free: 13.68 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.006349076051265]