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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001955/0.001955, allocations: 107 kB / 17.16 MB, free: 6.324 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.002401/0.0024, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.216/2.216, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 46.86 kB / 300.6 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1392, allocations: 49.45 MB / 350.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.01208/0.1513, allocations: 7.464 MB / 357.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02207/0.1735, allocations: 10.95 MB / 368.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.1757, allocations: 39.69 kB / 368.5 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003456/0.1792, allocations: 0.6218 MB / 369.1 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007782/0.1871, allocations: 0.9719 MB / 370.1 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00362/0.1907, allocations: 495.8 kB / 370.6 MB, free: 288 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2884/0.4792, allocations: 2.455 MB / 373 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009859/0.4802, allocations: 267 kB / 373.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001374/0.4816, allocations: 459.5 kB / 373.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.4828, allocations: 0.5239 MB / 374.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002094/0.483, allocations: 37.59 kB / 374.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003513/0.4865, allocations: 0.7547 MB / 375.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003892/0.487, allocations: 166.3 kB / 375.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.4885, allocations: 0.6564 MB / 375.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003046/0.4916, allocations: 1.424 MB / 377.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.4916, allocations: 3.938 kB / 377.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4916, allocations: 0 / 377.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.604e-05/0.4917, allocations: 1.219 kB / 377.3 MB, free: 9.766 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.006693/0.4984, allocations: 1.981 MB / 379.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/0.4985, allocations: 9.062 kB / 379.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006234/0.4991, allocations: 201.6 kB / 379.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004078/0.5032, allocations: 1.34 MB / 380.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.683e-05/0.5033, allocations: 32.56 kB / 380.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.5035, allocations: 50.19 kB / 380.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.5053, allocations: 0.508 MB / 381.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.5053, allocations: 1.344 kB / 381.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.704e-05/0.5054, allocations: 18.98 kB / 381.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.694e-05/0.5055, allocations: 14.7 kB / 381.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.507, allocations: 478 kB / 381.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005552/0.5126, allocations: 2.093 MB / 384 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.5137, allocations: 0.7039 MB / 384.7 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007508/0.5145, allocations: 0.5263 MB / 385.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009116/0.5236, allocations: 6.516 MB / 391.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006267/0.5243, allocations: 297.9 kB / 392.1 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 3.527e-06/0.5243, allocations: 1.25 kB / 392.1 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of matching and sorting (n=59): time 0.005396/0.5297, allocations: 1.955 MB / 394 MB, free: 15.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.841e-05/0.5299, allocations: 62.06 kB / 394.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002267/0.5321, allocations: 1.297 MB / 395.4 MB, free: 14.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.143e-05/0.5322, allocations: 40.39 kB / 395.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007311/0.533, allocations: 0.7165 MB / 396.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.5332, allocations: 203.8 kB / 396.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.5334, allocations: 122.4 kB / 396.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5336, allocations: 331.1 kB / 396.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004982/0.5341, allocations: 199.2 kB / 397 MB, free: 13.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.5347, allocations: 363.5 kB / 397.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.5358, allocations: 0.5963 MB / 397.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5358, allocations: 1.125 kB / 397.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002009/0.5378, allocations: 0.9162 MB / 398.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.5379, allocations: 6.844 kB / 398.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.654e-05/0.538, allocations: 62.84 kB / 398.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004678/0.5384, allocations: 160.5 kB / 399.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.5389, allocations: 112.9 kB / 399.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/0.5422, allocations: 2.298 MB / 401.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.5432, allocations: 33.5 kB / 401.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.4e-05/0.5433, allocations: 30.38 kB / 401.5 MB, free: 10.56 MB / 318.1 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 (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.0007274/0.544, allocations: 270.2 kB / 401.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003027/0.5443, allocations: 178.2 kB / 402 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002484/0.5468, allocations: 0.8889 MB / 402.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.5469, allocations: 7.094 kB / 402.9 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5469, allocations: 2.719 kB / 402.9 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.5469, allocations: 7.141 kB / 402.9 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.5492, allocations: 0.8632 MB / 403.7 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001221/0.5494, allocations: 53.53 kB / 403.8 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004507/0.5498, allocations: 64.64 kB / 403.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004521/0.5503, allocations: 144.7 kB / 404 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-05/0.5504, allocations: 24 kB / 404 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002985/0.5534, allocations: 2.278 MB / 406.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5534, allocations: 8.562 kB / 406.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.5557, allocations: 1.059 MB / 407.4 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006068/0.5563, allocations: 250.9 kB / 407.6 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.5565, allocations: 12 kB / 407.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003773/0.5569, allocations: 19.98 kB / 407.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.557, allocations: 52.31 kB / 407.7 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.766e-05/0.5571, allocations: 25.25 kB / 407.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001321/0.5585, allocations: 0.861 MB / 408.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5585, allocations: 0 / 408.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001322/0.5598, allocations: 379.8 kB / 408.9 MB, free: 3.883 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.000866/0.5607, allocations: 453.2 kB / 409.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.5625, allocations: 0.8405 MB / 410.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.5625, allocations: 0 / 410.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.5637, allocations: 0.5838 MB / 410.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.5649, allocations: 203.1 kB / 411 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004869/0.5698, allocations: 2.883 MB / 413.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000797/0.5706, allocations: 1.17 MB / 415.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002494/0.5709, allocations: 91.44 kB / 415.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5709, allocations: 0 / 415.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of Templates: time 0.04781/0.6187, allocations: 23.95 MB / 439.1 MB, free: 5.73 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches