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.0014/0.0014, allocations: 110.5 kB / 17.73 MB, free: 5.301 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.001661/0.001662, allocations: 187 kB / 18.66 MB, free: 4.375 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.403/1.403, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001129/0.001129, allocations: 52.39 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08265/0.08378, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.2211/0.3049, allocations: 7.34 MB / 382.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.3165, allocations: 10.39 MB / 392.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.3181, allocations: 77.56 kB / 392.9 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00215/0.3203, allocations: 0.6916 MB / 393.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004444/0.3247, allocations: 1.169 MB / 394.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002191/0.327, allocations: 0.6684 MB / 395.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004331/0.3313, allocations: 2.483 MB / 397.9 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005478/0.3319, allocations: 289.6 kB / 398.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008523/0.3327, allocations: 473.8 kB / 398.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006381/0.3334, allocations: 0.5284 MB / 399.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.3335, allocations: 55.03 kB / 399.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002006/0.3355, allocations: 0.7027 MB / 400 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.3357, allocations: 186.8 kB / 400.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007107/0.3364, allocations: 0.6692 MB / 400.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002769/0.3392, allocations: 1.943 MB / 402.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3392, allocations: 1.375 kB / 402.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3393, allocations: 0 / 402.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.3393, allocations: 1.125 kB / 402.8 MB, free: 13.86 MB / 334.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.003133/0.3424, allocations: 1.982 MB / 404.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3425, allocations: 10.19 kB / 404.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.3427, allocations: 198.1 kB / 405 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/0.3447, allocations: 1.336 MB / 406.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.3447, allocations: 31.88 kB / 406.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.882e-05/0.3448, allocations: 49.28 kB / 406.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.3459, allocations: 0.5071 MB / 406.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.3459, allocations: 9.047 kB / 406.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.346, allocations: 19.78 kB / 406.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.346, allocations: 14.55 kB / 406.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009526/0.347, allocations: 480.1 kB / 407.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.35, allocations: 2.099 MB / 409.5 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009888/0.351, allocations: 0.6995 MB / 410.2 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007532/0.3518, allocations: 0.5127 MB / 410.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007996/0.3598, allocations: 6.499 MB / 417.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005958/0.3604, allocations: 291.5 kB / 417.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.585e-06/0.3605, allocations: 6.156 kB / 417.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=59): time 0.0041/0.3646, allocations: 1.96 MB / 419.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.3646, allocations: 65.33 kB / 419.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/0.3666, allocations: 1.29 MB / 420.8 MB, free: 340 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.641e-05/0.3666, allocations: 36.45 kB / 420.8 MB, free: 300 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006287/0.3672, allocations: 0.7162 MB / 421.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.3674, allocations: 196.4 kB / 421.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001982/0.3676, allocations: 123.2 kB / 421.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3678, allocations: 335.3 kB / 422.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000418/0.3682, allocations: 191.7 kB / 422.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.3687, allocations: 363.8 kB / 422.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00226/0.371, allocations: 1.139 MB / 423.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.371, allocations: 0 / 423.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001754/0.3727, allocations: 0.9225 MB / 424.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3728, allocations: 16.03 kB / 424.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.527e-05/0.3729, allocations: 59.94 kB / 424.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004268/0.3733, allocations: 153.3 kB / 425 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/0.3738, allocations: 118.8 kB / 425.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00305/0.3769, allocations: 2.521 MB / 427.7 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.3779, allocations: 23.98 kB / 427.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.855e-05/0.378, allocations: 32 kB / 427.7 MB, free: 9.293 MB / 350.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.000718/0.3787, allocations: 279.2 kB / 428 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004294/0.3792, allocations: 185.8 kB / 428.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/0.3817, allocations: 0.8863 MB / 429.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.3817, allocations: 8 kB / 429.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3817, allocations: 4 kB / 429.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3817, allocations: 3.984 kB / 429.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.383, allocations: 0.863 MB / 429.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.741e-05/0.3831, allocations: 52 kB / 430 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003309/0.3835, allocations: 67.89 kB / 430.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003904/0.3839, allocations: 145 kB / 430.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.3839, allocations: 16 kB / 430.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002694/0.3866, allocations: 2.5 MB / 432.7 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.3866, allocations: 4 kB / 432.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/0.3887, allocations: 1.064 MB / 433.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/0.3893, allocations: 254.9 kB / 434 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004309/0.3898, allocations: 8 kB / 434 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005743/0.3904, allocations: 23.98 kB / 434.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.3905, allocations: 49.25 kB / 434.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-05/0.3906, allocations: 23.98 kB / 434.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001478/0.392, allocations: 0.8578 MB / 435 MB, free: 1.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3921, allocations: 0 / 435 MB, free: 1.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001259/0.3933, allocations: 375.8 kB / 435.4 MB, free: 1.41 MB / 350.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.0009298/0.3943, allocations: 468.1 kB / 435.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.396, allocations: 0.8405 MB / 436.7 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3961, allocations: 4 kB / 436.7 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.3972, allocations: 0.5785 MB / 437.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.3983, allocations: 184.2 kB / 437.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/0.4028, allocations: 2.378 MB / 439.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009836/0.4039, allocations: 1.174 MB / 441 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006043/0.4045, allocations: 183.2 kB / 441.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.4047, allocations: 87.42 kB / 441.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4047, allocations: 0 / 441.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of Templates: time 0.02706/0.4317, allocations: 13.47 MB / 454.7 MB, free: 13.92 MB / 382.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","/var/lib/jenkins/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