Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008164/0.0008164, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.0009546/0.0009546, allocations: 167.7 kB / 25.33 MB, free: 8.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9145/0.9145, allocations: 158.6 MB / 187.2 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.143e-05/3.335e-05, allocations: 2.312 kB / 251 MB, free: 7.512 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008057/0.00809, allocations: 6.988 MB / 258 MB, free: 500 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008591/0.01668, allocations: 9.801 MB / 267.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008713/0.01755, allocations: 122.6 kB / 268 MB, free: 6.523 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.0192, allocations: 0.6461 MB / 268.6 MB, free: 5.875 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002735/0.02193, allocations: 1.221 MB / 269.8 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.02327, allocations: 0.6796 MB / 270.5 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002522/0.02579, allocations: 2.632 MB / 273.1 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.02606, allocations: 176.4 kB / 273.3 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007971/0.02686, allocations: 0.994 MB / 274.3 MB, free: 128 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003491/0.02721, allocations: 394.7 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.962e-05/0.02728, allocations: 52 kB / 274.7 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009148/0.02819, allocations: 0.6596 MB / 275.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.0283, allocations: 190.8 kB / 275.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003876/0.02868, allocations: 382.8 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001251/0.02994, allocations: 1.502 MB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.02994, allocations: 0 / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.02994, allocations: 0 / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.02995, allocations: 0 / 277.5 MB, free: 12.96 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.002037/0.03199, allocations: 2.116 MB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.03204, allocations: 11.98 kB / 279.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002074/0.03225, allocations: 243.7 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.03337, allocations: 1.351 MB / 281.2 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.03339, allocations: 45.05 kB / 281.2 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.998e-05/0.03345, allocations: 47.95 kB / 281.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/0.03394, allocations: 385 kB / 281.6 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.03396, allocations: 0 / 281.6 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.03399, allocations: 16 kB / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.03401, allocations: 19.98 kB / 281.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.03435, allocations: 262.5 kB / 281.9 MB, free: 8.363 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.03619, allocations: 1.9 MB / 283.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.03661, allocations: 375.7 kB / 284.2 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003289/0.03694, allocations: 352.3 kB / 284.5 MB, free: 5.664 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003506/0.04044, allocations: 2.614 MB / 287.2 MB, free: 3.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.04073, allocations: 231.8 kB / 287.4 MB, free: 2.781 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.565e-06/0.04073, allocations: 0 / 287.4 MB, free: 2.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=59): time 0.0018/0.04253, allocations: 1.549 MB / 288.9 MB, free: 1.191 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.04257, allocations: 71.78 kB / 289 MB, free: 1.109 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.04358, allocations: 1.416 MB / 290.4 MB, free: 15.69 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.04361, allocations: 37.7 kB / 290.5 MB, free: 15.64 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004418/0.04405, allocations: 0.8145 MB / 291.3 MB, free: 14.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.04416, allocations: 214.2 kB / 291.5 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.04428, allocations: 131.9 kB / 291.6 MB, free: 14.47 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.0444, allocations: 0.5043 MB / 292.1 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.04454, allocations: 109.6 kB / 292.2 MB, free: 13.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.04477, allocations: 334.2 kB / 292.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005518/0.04533, allocations: 0.636 MB / 293.2 MB, free: 12.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.04533, allocations: 8 kB / 293.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009714/0.0463, allocations: 0.7598 MB / 293.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.04632, allocations: 8 kB / 294 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.853e-05/0.04637, allocations: 60.56 kB / 294 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000299/0.04666, allocations: 146.9 kB / 294.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.04691, allocations: 115.8 kB / 294.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.04854, allocations: 2.605 MB / 296.9 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.04877, allocations: 24 kB / 296.9 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.352e-05/0.04881, allocations: 35.98 kB / 296.9 MB, free: 8.816 MB / 282.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = \"V\" fixed = true ) type: Real T1.vbx:VARIABLE(unit = \"V\" fixed = true ) type: Real 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.0002282/0.04904, allocations: 200.4 kB / 297.1 MB, free: 8.609 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.04916, allocations: 202.9 kB / 297.3 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008483/0.05001, allocations: 0.7283 MB / 298.1 MB, free: 7.668 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.05002, allocations: 4 kB / 298.1 MB, free: 7.664 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.05002, allocations: 4 kB / 298.1 MB, free: 7.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.05002, allocations: 3.984 kB / 298.1 MB, free: 7.656 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006764/0.0507, allocations: 0.8005 MB / 298.9 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.202e-05/0.05074, allocations: 52 kB / 298.9 MB, free: 6.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.05089, allocations: 63.89 kB / 299 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002528/0.05115, allocations: 131.6 kB / 299.1 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.05117, allocations: 20 kB / 299.1 MB, free: 6.555 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/0.05296, allocations: 2.605 MB / 301.7 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.05296, allocations: 0 / 301.7 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009007/0.05386, allocations: 0.8163 MB / 302.5 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.05405, allocations: 182.7 kB / 302.7 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.788e-05/0.05412, allocations: 8 kB / 302.7 MB, free: 2.805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.05429, allocations: 19.92 kB / 302.8 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.05438, allocations: 48.42 kB / 302.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.05441, allocations: 31.98 kB / 302.8 MB, free: 2.707 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006112/0.05502, allocations: 0.803 MB / 303.6 MB, free: 1.914 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05502, allocations: 0 / 303.6 MB, free: 1.914 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006473/0.05567, allocations: 391.2 kB / 304 MB, free: 1.531 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 (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.0005723/0.05624, allocations: 0.4916 MB / 304.5 MB, free: 1.027 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007963/0.05704, allocations: 0.743 MB / 305.3 MB, free: 260 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.05704, allocations: 0 / 305.3 MB, free: 260 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004512/0.05749, allocations: 0.5549 MB / 305.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004394/0.05793, allocations: 190.3 kB / 306 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.06018, allocations: 2.228 MB / 308.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000138/0.06031, allocations: 240.5 kB / 308.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002793/0.06059, allocations: 183.2 kB / 308.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.723e-05/0.06068, allocations: 88.5 kB / 308.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of SimCode: time 8.41e-07/0.06068, allocations: 0 / 308.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of Templates: time 0.02117/0.08186, allocations: 16.04 MB / 324.8 MB, free: 12.64 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.1410381621681154]