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.001382/0.001382, allocations: 112.6 kB / 17.07 MB, free: 5.988 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.001613/0.001613, allocations: 191 kB / 18 MB, free: 5.078 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.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00094/0.00094, allocations: 47.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.268, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007116/0.2752, allocations: 7.498 MB / 408.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.2865, allocations: 10.71 MB / 418.9 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009138/0.2874, allocations: 83.25 kB / 419 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001542/0.289, allocations: 0.6984 MB / 419.7 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00327/0.2923, allocations: 1.192 MB / 420.9 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001633/0.294, allocations: 0.67 MB / 421.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.2973, allocations: 2.533 MB / 424.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000419/0.2977, allocations: 283.9 kB / 424.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005348/0.2983, allocations: 0.4937 MB / 424.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005164/0.2988, allocations: 0.5278 MB / 425.4 MB, free: 76 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.549e-05/0.2989, allocations: 55.94 kB / 425.5 MB, free: 20 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.3004, allocations: 0.7727 MB / 426.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.3005, allocations: 182.8 kB / 426.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005109/0.3011, allocations: 0.6715 MB / 427.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002001/0.3031, allocations: 1.96 MB / 429 MB, free: 12.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3031, allocations: 0 / 429 MB, free: 12.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3031, allocations: 0 / 429 MB, free: 12.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.3031, allocations: 0 / 429 MB, free: 12.42 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.002609/0.3057, allocations: 2.05 MB / 431.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.3058, allocations: 8.031 kB / 431.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002211/0.306, allocations: 203.7 kB / 431.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001717/0.3077, allocations: 1.355 MB / 432.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.3078, allocations: 32.94 kB / 432.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.313e-05/0.3079, allocations: 48 kB / 432.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009107/0.3088, allocations: 0.5158 MB / 433.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3088, allocations: 0 / 433.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.3089, allocations: 19.94 kB / 433.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.3089, allocations: 19.98 kB / 433.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009087/0.3098, allocations: 472.1 kB / 433.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002777/0.3126, allocations: 2.089 MB / 435.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009756/0.3136, allocations: 0.7047 MB / 436.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007478/0.3143, allocations: 0.5173 MB / 437.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007446/0.3218, allocations: 6.521 MB / 443.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005776/0.3224, allocations: 290.5 kB / 443.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.134e-06/0.3224, allocations: 0 / 443.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003379/0.3258, allocations: 1.994 MB / 445.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.3258, allocations: 63.84 kB / 445.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.3272, allocations: 1.3 MB / 447.2 MB, free: 8.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.3273, allocations: 33.7 kB / 447.2 MB, free: 8.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005529/0.3278, allocations: 0.7157 MB / 448 MB, free: 8.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.328, allocations: 214.2 kB / 448.2 MB, free: 7.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.3282, allocations: 122.3 kB / 448.3 MB, free: 7.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.3283, allocations: 330 kB / 448.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.3287, allocations: 201.5 kB / 448.8 MB, free: 7.305 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/0.3292, allocations: 371.8 kB / 449.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009286/0.3301, allocations: 0.5909 MB / 449.8 MB, free: 6.207 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3301, allocations: 4 kB / 449.8 MB, free: 6.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001442/0.3316, allocations: 0.9229 MB / 450.7 MB, free: 5.277 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3316, allocations: 8 kB / 450.7 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.853e-05/0.3317, allocations: 59.98 kB / 450.8 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003966/0.3321, allocations: 157.4 kB / 450.9 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004366/0.3326, allocations: 111.8 kB / 451 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002683/0.3352, allocations: 2.526 MB / 453.5 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/0.3357, allocations: 28.03 kB / 453.6 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.988e-05/0.3358, allocations: 36 kB / 453.6 MB, free: 2.219 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.000346/0.3361, allocations: 273.6 kB / 453.9 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.3363, allocations: 190.8 kB / 454.1 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.338, allocations: 0.8865 MB / 455 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.338, allocations: 8 kB / 455 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.338, allocations: 3.938 kB / 455 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.338, allocations: 3.984 kB / 455 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008902/0.3389, allocations: 0.8749 MB / 455.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.801e-05/0.339, allocations: 56 kB / 455.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.3393, allocations: 59.94 kB / 456 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003533/0.3397, allocations: 144.7 kB / 456.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.3397, allocations: 23.98 kB / 456.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002528/0.3423, allocations: 2.494 MB / 458.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3423, allocations: 0 / 458.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/0.344, allocations: 1.085 MB / 459.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/0.3443, allocations: 256 kB / 459.9 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.3444, allocations: 12 kB / 460 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003377/0.3448, allocations: 15.98 kB / 460 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3449, allocations: 48.38 kB / 460 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.436e-05/0.3449, allocations: 23.98 kB / 460 MB, free: 11.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000978/0.3459, allocations: 0.8578 MB / 460.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3459, allocations: 0 / 460.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000828/0.3468, allocations: 379.3 kB / 461.3 MB, free: 10.32 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.0006905/0.3475, allocations: 463.5 kB / 461.7 MB, free: 9.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.349, allocations: 0.8483 MB / 462.6 MB, free: 8.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.349, allocations: 0 / 462.6 MB, free: 8.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009294/0.3499, allocations: 0.5826 MB / 463.2 MB, free: 8.375 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008028/0.3507, allocations: 206.2 kB / 463.4 MB, free: 8.172 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003439/0.3542, allocations: 2.441 MB / 465.8 MB, free: 5.695 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006163/0.3548, allocations: 1.166 MB / 467 MB, free: 4.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000428/0.3553, allocations: 187.2 kB / 467.1 MB, free: 4.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.3554, allocations: 83.44 kB / 467.2 MB, free: 4.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3554, allocations: 0 / 467.2 MB, free: 4.23 MB / 382.1 MB Notification: Performance of Templates: time 0.02614/0.3815, allocations: 13.53 MB / 480.8 MB, free: 6.754 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