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.0009377/0.0009379, allocations: 92.66 kB / 16.95 MB, free: 6.105 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.001061/0.001061, allocations: 177 kB / 17.83 MB, free: 5.723 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.435/1.435, allocations: 205.4 MB / 224 MB, free: 13.08 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.000486/0.0004862, allocations: 16 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 47.58 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005799/0.1197, allocations: 6.431 MB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0108/0.1305, allocations: 9.494 MB / 344.3 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007596/0.1313, allocations: 39.69 kB / 344.3 MB, free: 4.062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.1327, allocations: 0.5321 MB / 344.8 MB, free: 3.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002821/0.1355, allocations: 0.9003 MB / 345.7 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.137, allocations: 450.9 kB / 346.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003516/0.1405, allocations: 2.303 MB / 348.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004076/0.1409, allocations: 243.2 kB / 348.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004401/0.1414, allocations: 405.9 kB / 349.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004667/0.1418, allocations: 473 kB / 349.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.516e-05/0.1419, allocations: 32 kB / 349.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.1433, allocations: 0.6362 MB / 350.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.1435, allocations: 147 kB / 350.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.1437, allocations: 320.8 kB / 350.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.1449, allocations: 1.398 MB / 352.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1449, allocations: 0 / 352.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.145, allocations: 0 / 352.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.145, allocations: 0 / 352.1 MB, free: 12.2 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.00231/0.1473, allocations: 1.784 MB / 353.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1473, allocations: 8.031 kB / 353.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.1475, allocations: 205.6 kB / 354.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.1491, allocations: 1.264 MB / 355.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.546e-05/0.1492, allocations: 33 kB / 355.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.469e-05/0.1493, allocations: 47.98 kB / 355.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008715/0.1501, allocations: 0.5197 MB / 356 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1502, allocations: 0 / 356 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.57e-05/0.1502, allocations: 20 kB / 356 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.1502, allocations: 16 kB / 356 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008593/0.1511, allocations: 496 kB / 356.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002618/0.1537, allocations: 2.104 MB / 358.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009639/0.1547, allocations: 0.7276 MB / 359.3 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007383/0.1554, allocations: 0.5251 MB / 359.8 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007935/0.1634, allocations: 6.536 MB / 366.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006039/0.164, allocations: 302.5 kB / 366.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 3.797e-06/0.1641, allocations: 0 / 366.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.004528/0.1686, allocations: 2.003 MB / 368.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.1687, allocations: 59.84 kB / 368.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002167/0.1709, allocations: 1.28 MB / 370 MB, free: 8.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.77e-05/0.1709, allocations: 37.7 kB / 370 MB, free: 8.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007023/0.1716, allocations: 0.7111 MB / 370.8 MB, free: 8.219 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.1718, allocations: 205 kB / 371 MB, free: 8.016 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.1719, allocations: 8 kB / 371 MB, free: 8.008 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.172, allocations: 337.9 kB / 371.3 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004037/0.1724, allocations: 201.6 kB / 371.5 MB, free: 7.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.173, allocations: 372.4 kB / 371.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.1735, allocations: 254.7 kB / 372.1 MB, free: 6.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1735, allocations: 4 kB / 372.1 MB, free: 6.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001704/0.1752, allocations: 0.9337 MB / 373 MB, free: 5.855 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.1753, allocations: 10.66 kB / 373.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.433e-05/0.1754, allocations: 56.62 kB / 373.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004225/0.1758, allocations: 160.8 kB / 373.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.1763, allocations: 119.8 kB / 373.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.1791, allocations: 2.302 MB / 375.7 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005786/0.1796, allocations: 35.98 kB / 375.7 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.467e-05/0.1797, allocations: 36 kB / 375.8 MB, free: 3.008 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 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005733/0.1803, allocations: 273.7 kB / 376 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00026/0.1806, allocations: 185.8 kB / 376.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.1825, allocations: 0.9059 MB / 377.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.1825, allocations: 11.94 kB / 377.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1826, allocations: 0 / 377.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.1826, allocations: 7.984 kB / 377.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.1837, allocations: 0.8592 MB / 378 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.249e-05/0.1838, allocations: 55.98 kB / 378 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.1841, allocations: 75.89 kB / 378.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003485/0.1845, allocations: 140.7 kB / 378.3 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/0.1845, allocations: 27.98 kB / 378.3 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1891/0.3736, allocations: 2.273 MB / 380.6 MB, free: 51.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.3737, allocations: 4.031 kB / 380.6 MB, free: 51.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.3761, allocations: 1.096 MB / 381.7 MB, free: 51.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003387/0.3764, allocations: 246.2 kB / 381.9 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.3766, allocations: 12.38 kB / 381.9 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.3769, allocations: 24.94 kB / 381.9 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.377, allocations: 52.23 kB / 382 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.298e-05/0.3771, allocations: 19.66 kB / 382 MB, free: 51.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001179/0.3783, allocations: 0.8462 MB / 382.8 MB, free: 51.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3783, allocations: 0 / 382.8 MB, free: 51.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001072/0.3794, allocations: 373.2 kB / 383.2 MB, free: 51.58 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000703/0.3801, allocations: 424.5 kB / 383.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.3816, allocations: 0.8651 MB / 384.5 MB, free: 51.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3816, allocations: 3.594 kB / 384.5 MB, free: 51.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009052/0.3826, allocations: 0.5947 MB / 385.1 MB, free: 50.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.3832, allocations: 179.1 kB / 385.3 MB, free: 50.67 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/0.3868, allocations: 2.757 MB / 388 MB, free: 49.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006645/0.3875, allocations: 1.171 MB / 389.2 MB, free: 48.42 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006329/0.3881, allocations: 188.7 kB / 389.4 MB, free: 48.37 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.3882, allocations: 81.69 kB / 389.5 MB, free: 48.36 MB / 318.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3883, allocations: 0 / 389.5 MB, free: 48.36 MB / 318.1 MB Notification: Performance of Templates: time 0.02221/0.4105, allocations: 12.49 MB / 401.9 MB, free: 41.75 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches