Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002632/0.002632, allocations: 183.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.691/2.691, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001635/0.001635, allocations: 84.38 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.0003877, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3354, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007725/0.3432, allocations: 5.982 MB / 380.5 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.3578, allocations: 9.118 MB / 389.6 MB, free: 33.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001415/0.3593, allocations: 38.75 kB / 389.7 MB, free: 33.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002502/0.3618, allocations: 0.5606 MB / 390.2 MB, free: 33.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004822/0.3667, allocations: 1.038 MB / 391.3 MB, free: 32.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002163/0.3689, allocations: 455.3 kB / 391.7 MB, free: 31.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005912/0.3749, allocations: 2.363 MB / 394.1 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006002/0.3755, allocations: 252.2 kB / 394.3 MB, free: 29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006686/0.3762, allocations: 398 kB / 394.7 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005455/0.3768, allocations: 485 kB / 395.2 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.3769, allocations: 28 kB / 395.2 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002415/0.3793, allocations: 0.6714 MB / 395.9 MB, free: 27.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003076/0.3797, allocations: 151 kB / 396 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005579/0.3803, allocations: 312.8 kB / 396.3 MB, free: 26.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002585/0.3829, allocations: 1.364 MB / 397.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.3829, allocations: 0 / 397.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3829, allocations: 0 / 397.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.389e-05/0.383, allocations: 0 / 397.7 MB, free: 25.61 MB / 298.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.003711/0.3867, allocations: 1.78 MB / 399.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3868, allocations: 8.031 kB / 399.5 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.3871, allocations: 197.7 kB / 399.7 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002826/0.39, allocations: 1.268 MB / 400.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/0.39, allocations: 37 kB / 401 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.3902, allocations: 40 kB / 401 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.3916, allocations: 0.5197 MB / 401.5 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.3916, allocations: 0 / 401.5 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.969e-05/0.3917, allocations: 20 kB / 401.5 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/0.3917, allocations: 19.98 kB / 401.6 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.3931, allocations: 496 kB / 402.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00419/0.3974, allocations: 2.119 MB / 404.2 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.3989, allocations: 0.7199 MB / 404.9 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/0.4089, allocations: 6.552 MB / 411.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008242/0.4098, allocations: 294.5 kB / 411.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 3.667e-06/0.4098, allocations: 0 / 411.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=59): time 0.005514/0.4153, allocations: 2.178 MB / 413.9 MB, free: 8.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.4154, allocations: 63.73 kB / 414 MB, free: 7.973 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002/0.4174, allocations: 1.28 MB / 415.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.696e-05/0.4176, allocations: 29.7 kB / 415.3 MB, free: 6.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005568/0.4181, allocations: 0.6315 MB / 415.9 MB, free: 6.027 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002035/0.4184, allocations: 205 kB / 416.1 MB, free: 5.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.55e-05/0.4184, allocations: 12 kB / 416.1 MB, free: 5.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.142e-05/0.4185, allocations: 334.8 kB / 416.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006883/0.4192, allocations: 213.5 kB / 416.7 MB, free: 5.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007401/0.42, allocations: 361 kB / 417 MB, free: 4.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007616/0.4207, allocations: 262.7 kB / 417.3 MB, free: 4.598 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.4208, allocations: 0 / 417.3 MB, free: 4.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00223/0.423, allocations: 0.7755 MB / 418 MB, free: 3.812 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.4231, allocations: 8 kB / 418.1 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/0.4232, allocations: 55.98 kB / 418.1 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006413/0.4238, allocations: 167.9 kB / 418.3 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007923/0.4247, allocations: 119.8 kB / 418.4 MB, free: 3.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003626/0.4283, allocations: 2.34 MB / 420.7 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000907/0.4293, allocations: 32.03 kB / 420.8 MB, free: 0.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.219e-05/0.4294, allocations: 28 kB / 420.8 MB, free: 0.9297 MB / 298.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 ($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.0007118/0.4301, allocations: 293.6 kB / 421.1 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000268/0.4304, allocations: 177.9 kB / 421.2 MB, free: 468 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003173/0.4335, allocations: 0.9176 MB / 422.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.4336, allocations: 8 kB / 422.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.4336, allocations: 7.953 kB / 422.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.4336, allocations: 3.984 kB / 422.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.4354, allocations: 0.8554 MB / 423 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001332/0.4356, allocations: 55.98 kB / 423.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000597/0.4362, allocations: 67.95 kB / 423.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006692/0.4368, allocations: 151.6 kB / 423.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.837e-05/0.4369, allocations: 27.89 kB / 423.3 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004272/0.4412, allocations: 2.309 MB / 425.6 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.4413, allocations: 8.031 kB / 425.7 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003422/0.4447, allocations: 1.096 MB / 426.7 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000606/0.4454, allocations: 250.9 kB / 427 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/0.4456, allocations: 8 kB / 427 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006521/0.4463, allocations: 27.98 kB / 427 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.4465, allocations: 52.31 kB / 427.1 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.73e-05/0.4466, allocations: 24 kB / 427.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001782/0.4484, allocations: 0.846 MB / 427.9 MB, free: 9.531 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4484, allocations: 3.938 kB / 428 MB, free: 9.527 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001513/0.45, allocations: 371.8 kB / 428.3 MB, free: 9.164 MB / 314.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 (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.001089/0.4511, allocations: 439.2 kB / 428.7 MB, free: 8.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002678/0.4538, allocations: 0.8602 MB / 429.6 MB, free: 7.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.4538, allocations: 0 / 429.6 MB, free: 7.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.4555, allocations: 0.5866 MB / 430.2 MB, free: 7.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.4566, allocations: 174.2 kB / 430.4 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006122/0.4627, allocations: 2.793 MB / 433.2 MB, free: 4.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000964/0.4637, allocations: 1.205 MB / 434.4 MB, free: 2.992 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003433/0.4641, allocations: 83.44 kB / 434.4 MB, free: 2.914 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.4641, allocations: 0 / 434.4 MB, free: 2.914 MB / 314.7 MB Notification: Performance of Templates: time 0.04894/0.513, allocations: 22.85 MB / 457.3 MB, free: 12.03 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches