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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,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=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 110.2 kB / 18.25 MB, free: 4.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001604, allocations: 195.3 kB / 19.18 MB, free: 3.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.1 MB / 225 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 55.86 kB / 281.3 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1094, allocations: 46.63 MB / 327.9 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008138/0.1176, allocations: 7.34 MB / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.1301, allocations: 10.39 MB / 345.7 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1312, allocations: 35.69 kB / 345.7 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00181/0.1331, allocations: 0.687 MB / 346.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003895/0.137, allocations: 1.173 MB / 347.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.1389, allocations: 0.6622 MB / 348.2 MB, free: 92 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003805/0.1427, allocations: 2.482 MB / 350.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004944/0.1432, allocations: 279.9 kB / 351 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006166/0.1438, allocations: 457.7 kB / 351.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005159/0.1444, allocations: 0.524 MB / 352 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.1445, allocations: 59.94 kB / 352 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.1462, allocations: 0.6987 MB / 352.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.1463, allocations: 182.8 kB / 352.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006049/0.1469, allocations: 0.6793 MB / 353.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002192/0.1491, allocations: 1.926 MB / 355.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.1492, allocations: 0 / 355.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1492, allocations: 0 / 355.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.1492, allocations: 0 / 355.5 MB, free: 8.766 MB / 302.1 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.00278/0.152, allocations: 1.977 MB / 357.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.152, allocations: 8.031 kB / 357.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.1523, allocations: 206.6 kB / 357.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.154, allocations: 1.341 MB / 359 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.154, allocations: 29 kB / 359.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.1541, allocations: 47.98 kB / 359.1 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009344/0.155, allocations: 0.5158 MB / 359.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1551, allocations: 0 / 359.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/0.1551, allocations: 20 kB / 359.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.1551, allocations: 11.98 kB / 359.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008952/0.156, allocations: 476.1 kB / 360.1 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002942/0.159, allocations: 2.116 MB / 362.2 MB, free: 1.836 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009722/0.16, allocations: 0.6963 MB / 362.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007106/0.1607, allocations: 0.5212 MB / 363.4 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008465/0.1692, allocations: 6.509 MB / 370 MB, free: 9.074 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005949/0.1698, allocations: 290.5 kB / 370.2 MB, free: 8.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 3.606e-06/0.1698, allocations: 7.938 kB / 370.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003729/0.1736, allocations: 1.956 MB / 372.2 MB, free: 6.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.1736, allocations: 59.84 kB / 372.3 MB, free: 6.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/0.1751, allocations: 1.292 MB / 373.6 MB, free: 5.395 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.1752, allocations: 37.7 kB / 373.6 MB, free: 5.352 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005915/0.1758, allocations: 0.715 MB / 374.3 MB, free: 4.633 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.176, allocations: 201 kB / 374.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.1761, allocations: 122.2 kB / 374.6 MB, free: 4.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1763, allocations: 338 kB / 375 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004191/0.1767, allocations: 189.6 kB / 375.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.1772, allocations: 367.8 kB / 375.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002263/0.1795, allocations: 1.131 MB / 376.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1795, allocations: 0 / 376.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001668/0.1812, allocations: 0.9262 MB / 377.6 MB, free: 1.223 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.1812, allocations: 4 kB / 377.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.243e-05/0.1813, allocations: 56 kB / 377.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004147/0.1817, allocations: 157 kB / 377.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004482/0.1822, allocations: 111.8 kB / 377.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1467/0.3289, allocations: 2.523 MB / 380.4 MB, free: 52.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006501/0.3296, allocations: 26.86 kB / 380.4 MB, free: 52.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.906e-05/0.3297, allocations: 30.77 kB / 380.5 MB, free: 52.56 MB / 318.1 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.0005174/0.3302, allocations: 276.9 kB / 380.7 MB, free: 52.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.3304, allocations: 185.8 kB / 380.9 MB, free: 52.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/0.3324, allocations: 0.8837 MB / 381.8 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.3324, allocations: 5.125 kB / 381.8 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.3325, allocations: 12.81 kB / 381.8 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3325, allocations: 1.922 kB / 381.8 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.3336, allocations: 0.8713 MB / 382.7 MB, free: 52.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.115e-05/0.3336, allocations: 51 kB / 382.7 MB, free: 52.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.3339, allocations: 65.75 kB / 382.8 MB, free: 52.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000374/0.3343, allocations: 146.3 kB / 382.9 MB, free: 52.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.3344, allocations: 21.56 kB / 383 MB, free: 52.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002273/0.3367, allocations: 2.5 MB / 385.5 MB, free: 50.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3367, allocations: 3.625 kB / 385.5 MB, free: 50.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.3386, allocations: 1.062 MB / 386.5 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.3389, allocations: 250.7 kB / 386.8 MB, free: 49.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.339, allocations: 12.23 kB / 386.8 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.3394, allocations: 20.77 kB / 386.8 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.3395, allocations: 48.42 kB / 386.8 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.754e-05/0.3396, allocations: 25.89 kB / 386.9 MB, free: 49.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001267/0.3409, allocations: 0.8592 MB / 387.7 MB, free: 49.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3409, allocations: 0 / 387.7 MB, free: 49.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009766/0.3419, allocations: 378.4 kB / 388.1 MB, free: 49.11 MB / 318.1 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.000703/0.3426, allocations: 451.4 kB / 388.5 MB, free: 49 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.3443, allocations: 0.8597 MB / 389.4 MB, free: 48.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3443, allocations: 0 / 389.4 MB, free: 48.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000953/0.3453, allocations: 0.58 MB / 390 MB, free: 48.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007378/0.346, allocations: 184.6 kB / 390.2 MB, free: 48.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.3496, allocations: 2.472 MB / 392.6 MB, free: 46.88 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005925/0.3502, allocations: 1.17 MB / 393.8 MB, free: 46.15 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.3504, allocations: 85.31 kB / 393.9 MB, free: 46.14 MB / 318.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3504, allocations: 0 / 393.9 MB, free: 46.14 MB / 318.1 MB Notification: Performance of Templates: time 0.0265/0.3769, allocations: 23.96 MB / 417.9 MB, free: 26.36 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches