Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008518/0.0008517, allocations: 92.52 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.451e-05/1.454e-05, allocations: 7.938 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 50.42 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.439, allocations: 91.81 MB / 479.3 MB, free: 3.023 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.4393, allocations: 73.84 kB / 479.3 MB, free: 2.953 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1151/0.5544, allocations: 55.14 MB / 0.522 GB, free: 11.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5544, allocations: 224 / 0.522 GB, free: 11.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.833e-05/0.5545, allocations: 28 kB / 0.522 GB, free: 11.71 MB / 410.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.002723/0.5572, allocations: 1.547 MB / 0.5235 GB, free: 10.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.5573, allocations: 8.031 kB / 0.5235 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002586/0.5576, allocations: 197.7 kB / 0.5237 GB, free: 9.918 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001693/0.5593, allocations: 1.151 MB / 0.5248 GB, free: 8.723 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.5593, allocations: 16 kB / 0.5248 GB, free: 8.707 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.928e-05/0.5594, allocations: 28 kB / 0.5249 GB, free: 8.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006591/0.5601, allocations: 390.6 kB / 0.5252 GB, free: 8.297 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007021/0.5608, allocations: 419.9 kB / 0.5256 GB, free: 7.879 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.5608, allocations: 7.984 kB / 0.5256 GB, free: 7.871 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.5608, allocations: 4 kB / 0.5256 GB, free: 7.867 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.5609, allocations: 11.98 kB / 0.5256 GB, free: 7.855 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003111/0.564, allocations: 2.035 MB / 0.5276 GB, free: 5.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007069/0.5647, allocations: 0.6254 MB / 0.5282 GB, free: 5.074 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005424/0.5653, allocations: 482.4 kB / 0.5287 GB, free: 4.598 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009902/0.5752, allocations: 7.741 MB / 0.5363 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004304/0.5757, allocations: 258.5 kB / 0.5365 GB, free: 11.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=55): time 2.615e-06/0.5757, allocations: 0 / 0.5365 GB, free: 11.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=59): time 0.004526/0.5802, allocations: 2.237 MB / 0.5387 GB, free: 9.082 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.5803, allocations: 59.84 kB / 0.5388 GB, free: 9.012 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.5817, allocations: 0.9942 MB / 0.5397 GB, free: 8.023 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.49e-05/0.5817, allocations: 25.7 kB / 0.5397 GB, free: 7.992 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005974/0.5823, allocations: 0.7112 MB / 0.5404 GB, free: 7.273 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.5825, allocations: 197.1 kB / 0.5406 GB, free: 7.078 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-05/0.5825, allocations: 0 / 0.5406 GB, free: 7.078 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.5826, allocations: 334 kB / 0.5409 GB, free: 6.746 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.5829, allocations: 153.6 kB / 0.5411 GB, free: 6.598 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.5833, allocations: 322 kB / 0.5414 GB, free: 6.215 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007573/0.584, allocations: 373.7 kB / 0.5418 GB, free: 5.848 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.584, allocations: 3.938 kB / 0.5418 GB, free: 5.844 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001659/0.5857, allocations: 0.9494 MB / 0.5427 GB, free: 4.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.5857, allocations: 9.562 kB / 0.5427 GB, free: 4.875 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-05/0.5858, allocations: 59.98 kB / 0.5428 GB, free: 4.816 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003879/0.5862, allocations: 149.4 kB / 0.5429 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004609/0.5867, allocations: 115.8 kB / 0.543 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/0.5894, allocations: 2.227 MB / 0.5452 GB, free: 2.215 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006354/0.59, allocations: 19.98 kB / 0.5452 GB, free: 2.195 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.688e-05/0.5901, allocations: 36.17 kB / 0.5452 GB, free: 2.16 MB / 426.7 MB 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 () * 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 {(5,64.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.5903, allocations: 116.8 kB / 0.5453 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.5905, allocations: 189.8 kB / 0.5455 GB, free: 1.852 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.5928, allocations: 0.9647 MB / 0.5465 GB, free: 0.875 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.5928, allocations: 8 kB / 0.5465 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.5928, allocations: 0 / 0.5465 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5928, allocations: 4 kB / 0.5465 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.594, allocations: 0.8003 MB / 0.5473 GB, free: 28 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.2271/0.8212, allocations: 51.27 kB / 0.5473 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/0.8216, allocations: 68 kB / 0.5474 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004745/0.8221, allocations: 141.3 kB / 0.5475 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.673e-05/0.8222, allocations: 14.91 kB / 0.5475 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/0.8252, allocations: 2.22 MB / 0.5497 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.8252, allocations: 1.5 kB / 0.5497 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.8274, allocations: 1.098 MB / 0.5508 GB, free: 109.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003331/0.8278, allocations: 252.4 kB / 0.551 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.8279, allocations: 7.047 kB / 0.551 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003601/0.8283, allocations: 18.94 kB / 0.551 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.8284, allocations: 46.14 kB / 0.5511 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.988e-05/0.8285, allocations: 21.94 kB / 0.5511 GB, free: 109.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009991/0.8295, allocations: 0.7433 MB / 0.5518 GB, free: 108.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8295, allocations: 0 / 0.5518 GB, free: 108.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001041/0.8306, allocations: 402.6 kB / 0.5522 GB, free: 108.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vcs,T2.vbe,T2.vcs) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * 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 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009031/0.8315, allocations: 0.5885 MB / 0.5528 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.8327, allocations: 0.7559 MB / 0.5535 GB, free: 108.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.8327, allocations: 0 / 0.5535 GB, free: 108.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007892/0.8335, allocations: 0.5514 MB / 0.5541 GB, free: 108.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.8342, allocations: 177.3 kB / 0.5542 GB, free: 108.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/0.8371, allocations: 1.775 MB / 0.556 GB, free: 107.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007031/0.8379, allocations: 1.201 MB / 0.5571 GB, free: 107.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000561/0.8384, allocations: 154.8 kB / 0.5573 GB, free: 107.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.8385, allocations: 70 kB / 0.5574 GB, free: 107.2 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8386, allocations: 0 / 0.5574 GB, free: 107.2 MB / 426.7 MB Notification: Performance of Templates: time 0.02508/0.8636, allocations: 11.25 MB / 0.5683 GB, free: 106.4 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches