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.0009972/0.0009971, allocations: 97.94 kB / 17.3 MB, free: 6.078 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.001193/0.001193, allocations: 180.2 kB / 18.21 MB, free: 5.395 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.326/1.326, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004535/0.0004535, allocations: 15.98 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.0859, allocations: 47.58 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005987/0.09193, allocations: 6.876 MB / 335.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.1028, allocations: 10.46 MB / 346.3 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007021/0.1036, allocations: 39.69 kB / 346.3 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.1051, allocations: 0.6179 MB / 347 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002904/0.108, allocations: 0.9563 MB / 347.9 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.1094, allocations: 483.8 kB / 348.4 MB, free: 264 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.1124, allocations: 2.42 MB / 350.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003837/0.1128, allocations: 256.3 kB / 351.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004967/0.1133, allocations: 417.7 kB / 351.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004852/0.1138, allocations: 0.5005 MB / 352 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/0.1138, allocations: 32 kB / 352 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00138/0.1152, allocations: 0.683 MB / 352.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.1154, allocations: 158.8 kB / 352.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005868/0.116, allocations: 0.6615 MB / 353.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001849/0.1178, allocations: 1.868 MB / 355.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1179, allocations: 0 / 355.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1179, allocations: 0 / 355.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.1179, allocations: 0 / 355.4 MB, free: 9.223 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.002497/0.1204, allocations: 1.764 MB / 357.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1204, allocations: 8.031 kB / 357.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.1206, allocations: 198.6 kB / 357.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001728/0.1224, allocations: 1.341 MB / 358.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.1224, allocations: 29 kB / 358.7 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.1225, allocations: 55.83 kB / 358.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009159/0.1235, allocations: 0.5275 MB / 359.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.1235, allocations: 0 / 359.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.283e-05/0.1235, allocations: 16 kB / 359.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.604e-05/0.1236, allocations: 19.98 kB / 359.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009473/0.1245, allocations: 492.1 kB / 359.8 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.1275, allocations: 2.108 MB / 361.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009679/0.1285, allocations: 0.7275 MB / 362.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007257/0.1292, allocations: 0.5213 MB / 363.2 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007659/0.1369, allocations: 6.536 MB / 369.7 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005734/0.1375, allocations: 298.5 kB / 370 MB, free: 9.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 2.324e-06/0.1375, allocations: 4 kB / 370 MB, free: 9.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003668/0.1412, allocations: 2.01 MB / 372 MB, free: 7.281 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.1412, allocations: 63.83 kB / 372.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.1427, allocations: 1.3 MB / 373.4 MB, free: 5.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.1428, allocations: 37.7 kB / 373.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005967/0.1434, allocations: 0.7072 MB / 374.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.1435, allocations: 209 kB / 374.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.622e-05/0.1436, allocations: 57.69 kB / 374.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1438, allocations: 330 kB / 374.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004261/0.1442, allocations: 209.5 kB / 374.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.1447, allocations: 371.8 kB / 375.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002324/0.1471, allocations: 1.178 MB / 376.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1471, allocations: 0 / 376.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001587/0.1487, allocations: 0.946 MB / 377.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.1487, allocations: 8 kB / 377.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.86e-05/0.1488, allocations: 63.98 kB / 377.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004014/0.1492, allocations: 152.7 kB / 377.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004552/0.1497, allocations: 115.8 kB / 377.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.162/0.3117, allocations: 2.3 MB / 380 MB, free: 40.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006056/0.3123, allocations: 35.75 kB / 380 MB, free: 40.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.837e-05/0.3124, allocations: 35.53 kB / 380.1 MB, free: 40.5 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.0004718/0.3129, allocations: 273.6 kB / 380.3 MB, free: 40.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.3131, allocations: 180.5 kB / 380.5 MB, free: 40.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.315, allocations: 0.9131 MB / 381.4 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.315, allocations: 13.44 kB / 381.4 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.315, allocations: 3 kB / 381.5 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.315, allocations: 0.5312 kB / 381.5 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.3161, allocations: 0.8627 MB / 382.3 MB, free: 40.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.962e-05/0.3162, allocations: 54.58 kB / 382.4 MB, free: 40.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.3165, allocations: 66.83 kB / 382.4 MB, free: 40.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003839/0.3169, allocations: 148.9 kB / 382.6 MB, free: 40.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.156e-05/0.317, allocations: 20.14 kB / 382.6 MB, free: 40.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002496/0.3195, allocations: 2.292 MB / 384.9 MB, free: 38.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.3195, allocations: 7.125 kB / 384.9 MB, free: 38.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.3217, allocations: 1.096 MB / 386 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.322, allocations: 247.4 kB / 386.2 MB, free: 38.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.3222, allocations: 10.72 kB / 386.2 MB, free: 38.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003541/0.3225, allocations: 32.14 kB / 386.3 MB, free: 38.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.3227, allocations: 47.73 kB / 386.3 MB, free: 38.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-05/0.3227, allocations: 22.75 kB / 386.3 MB, free: 38.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001216/0.324, allocations: 0.8598 MB / 387.2 MB, free: 38.4 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.324, allocations: 1.5 kB / 387.2 MB, free: 38.4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009589/0.3249, allocations: 372.5 kB / 387.6 MB, free: 38.4 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.0008201/0.3258, allocations: 453.5 kB / 388 MB, free: 38.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.3276, allocations: 0.868 MB / 388.9 MB, free: 38.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3276, allocations: 0.875 kB / 388.9 MB, free: 38.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009388/0.3285, allocations: 0.5935 MB / 389.5 MB, free: 37.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000721/0.3293, allocations: 172.9 kB / 389.6 MB, free: 37.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.3331, allocations: 2.93 MB / 392.6 MB, free: 36.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006533/0.3338, allocations: 1.174 MB / 393.7 MB, free: 35.6 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000562/0.3343, allocations: 185.2 kB / 393.9 MB, free: 35.55 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.3344, allocations: 81.78 kB / 394 MB, free: 35.54 MB / 318.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3345, allocations: 0 / 394 MB, free: 35.54 MB / 318.1 MB Notification: Performance of Templates: time 0.02165/0.3561, allocations: 12.8 MB / 406.8 MB, free: 28.99 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