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.001057/0.001057, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001093/0.001093, allocations: 191 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.247, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007228/0.2543, allocations: 7.501 MB / 408.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.2656, allocations: 10.72 MB / 418.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000919/0.2666, allocations: 79.31 kB / 419 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.2681, allocations: 0.7113 MB / 419.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003055/0.2712, allocations: 1.196 MB / 420.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001535/0.2728, allocations: 0.6623 MB / 421.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003273/0.2761, allocations: 2.545 MB / 424.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003972/0.2765, allocations: 275.9 kB / 424.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005202/0.277, allocations: 0.4898 MB / 424.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005138/0.2775, allocations: 0.5395 MB / 425.4 MB, free: 32 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.924e-05/0.2776, allocations: 56.05 kB / 425.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001476/0.2791, allocations: 0.7649 MB / 426.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.2793, allocations: 190.8 kB / 426.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005437/0.2798, allocations: 0.6754 MB / 427.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001924/0.2818, allocations: 1.934 MB / 429 MB, free: 12.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2818, allocations: 4 kB / 429 MB, free: 12.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2818, allocations: 4 kB / 429 MB, free: 12.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.2818, allocations: 0 / 429 MB, free: 12.39 MB / 350.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.002519/0.2844, allocations: 1.981 MB / 431 MB, free: 10.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2844, allocations: 8.031 kB / 431 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002031/0.2846, allocations: 202.6 kB / 431.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/0.2863, allocations: 1.337 MB / 432.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.2864, allocations: 44.92 kB / 432.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.377e-05/0.2865, allocations: 44 kB / 432.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009287/0.2874, allocations: 0.5119 MB / 433.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2874, allocations: 0 / 433.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.015e-05/0.2875, allocations: 16 kB / 433.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.2875, allocations: 19.98 kB / 433.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009262/0.2884, allocations: 476.1 kB / 433.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002796/0.2912, allocations: 2.089 MB / 435.8 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000977/0.2922, allocations: 0.7046 MB / 436.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007234/0.293, allocations: 0.5173 MB / 437 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007121/0.3001, allocations: 6.517 MB / 443.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005596/0.3007, allocations: 294.5 kB / 443.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.225e-06/0.3007, allocations: 0 / 443.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003476/0.3042, allocations: 1.967 MB / 445.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.3042, allocations: 55.84 kB / 445.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001493/0.3057, allocations: 1.3 MB / 447.1 MB, free: 9.016 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.3058, allocations: 33.7 kB / 447.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005852/0.3064, allocations: 0.7111 MB / 447.8 MB, free: 8.258 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.3066, allocations: 209 kB / 448.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.3067, allocations: 122.2 kB / 448.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.3069, allocations: 330 kB / 448.5 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/0.3073, allocations: 201.5 kB / 448.7 MB, free: 7.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005083/0.3078, allocations: 365.1 kB / 449 MB, free: 6.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000945/0.3088, allocations: 0.5948 MB / 449.6 MB, free: 6.305 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3088, allocations: 4 kB / 449.6 MB, free: 6.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001582/0.3104, allocations: 0.9147 MB / 450.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.3104, allocations: 8 kB / 450.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.543e-05/0.3105, allocations: 59.98 kB / 450.6 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004165/0.3109, allocations: 156.8 kB / 450.8 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.3114, allocations: 111.8 kB / 450.9 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002849/0.3143, allocations: 2.521 MB / 453.4 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.3147, allocations: 32.03 kB / 453.4 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.743e-05/0.3148, allocations: 32 kB / 453.5 MB, free: 2.328 MB / 366.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.000394/0.3152, allocations: 277.6 kB / 453.7 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.3154, allocations: 189.8 kB / 453.9 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.3172, allocations: 0.8942 MB / 454.8 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3172, allocations: 4 kB / 454.8 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3172, allocations: 4 kB / 454.8 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3172, allocations: 3.984 kB / 454.8 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009655/0.3182, allocations: 0.8592 MB / 455.7 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.086e-05/0.3183, allocations: 52.05 kB / 455.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/0.3186, allocations: 67.83 kB / 455.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003517/0.319, allocations: 144.7 kB / 456 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.319, allocations: 19.98 kB / 456 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.3217, allocations: 2.493 MB / 458.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3217, allocations: 0 / 458.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.3236, allocations: 1.068 MB / 459.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002915/0.3239, allocations: 254.9 kB / 459.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.324, allocations: 8 kB / 459.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.3244, allocations: 19.98 kB / 459.8 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.3246, allocations: 48.38 kB / 459.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-05/0.3246, allocations: 23.98 kB / 459.9 MB, free: 11.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00107/0.3257, allocations: 0.8616 MB / 460.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3257, allocations: 0 / 460.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008876/0.3266, allocations: 375.8 kB / 461.1 MB, free: 10.45 MB / 382.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.0007589/0.3274, allocations: 460.1 kB / 461.6 MB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.329, allocations: 0.8444 MB / 462.4 MB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.329, allocations: 0 / 462.4 MB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009755/0.33, allocations: 0.5824 MB / 463 MB, free: 8.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008452/0.3309, allocations: 198.3 kB / 463.2 MB, free: 8.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.3342, allocations: 2.386 MB / 465.6 MB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006826/0.3349, allocations: 1.17 MB / 466.7 MB, free: 4.703 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004587/0.3354, allocations: 187.2 kB / 466.9 MB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.3356, allocations: 83.44 kB / 467 MB, free: 4.434 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3356, allocations: 0 / 467 MB, free: 4.434 MB / 382.1 MB Notification: Performance of Templates: time 0.0246/0.3602, allocations: 13.53 MB / 480.5 MB, free: 6.961 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/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