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.001371/0.001371, allocations: 114.2 kB / 16.63 MB, free: 6.812 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.001489/0.001489, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.301/1.301, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009393/0.0009393, allocations: 51.34 kB / 300.1 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.08102, allocations: 49.45 MB / 349.6 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007152/0.0882, allocations: 7.464 MB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.09919, allocations: 10.62 MB / 367.7 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006957/0.09991, allocations: 39.69 kB / 367.7 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.1014, allocations: 0.6179 MB / 368.3 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002522/0.104, allocations: 1.003 MB / 369.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.1054, allocations: 0.5927 MB / 369.9 MB, free: 108 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1487/0.2541, allocations: 2.532 MB / 372.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004545/0.2545, allocations: 283.5 kB / 372.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005766/0.2551, allocations: 492.5 kB / 373.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004675/0.2556, allocations: 0.531 MB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.22e-05/0.2557, allocations: 56.81 kB / 373.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.2572, allocations: 0.7673 MB / 374.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.2573, allocations: 188.5 kB / 374.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004791/0.2578, allocations: 0.6792 MB / 375.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001811/0.2596, allocations: 1.931 MB / 377.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2596, allocations: 0 / 377.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2597, allocations: 0 / 377.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.2597, allocations: 1.031 kB / 377.3 MB, free: 9.473 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.002487/0.2622, allocations: 1.976 MB / 379.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2622, allocations: 9.812 kB / 379.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.2624, allocations: 198.9 kB / 379.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.2641, allocations: 1.342 MB / 380.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.2641, allocations: 32.12 kB / 380.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.358e-05/0.2642, allocations: 53.77 kB / 381 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009225/0.2651, allocations: 0.5076 MB / 381.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.2651, allocations: 0 / 381.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.2652, allocations: 18.84 kB / 381.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.2652, allocations: 17.53 kB / 381.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008965/0.2661, allocations: 475.9 kB / 382 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/0.2689, allocations: 2.096 MB / 384.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008508/0.2698, allocations: 0.6954 MB / 384.8 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006836/0.2705, allocations: 0.526 MB / 385.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006513/0.277, allocations: 6.518 MB / 391.8 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006092/0.2776, allocations: 296.3 kB / 392.1 MB, free: 56 kB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.946e-06/0.2777, allocations: 0.9375 kB / 392.1 MB, free: 56 kB / 302.1 MB Notification: Performance of matching and sorting (n=59): time 0.003823/0.2815, allocations: 1.954 MB / 394 MB, free: 15.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.2815, allocations: 60.88 kB / 394.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.283, allocations: 1.298 MB / 395.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.283, allocations: 40.64 kB / 395.4 MB, free: 14.44 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000581/0.2836, allocations: 0.7145 MB / 396.2 MB, free: 13.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.2838, allocations: 210.8 kB / 396.4 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.284, allocations: 121.7 kB / 396.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.2841, allocations: 335.6 kB / 396.8 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.2845, allocations: 196.4 kB / 397 MB, free: 13.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.285, allocations: 361 kB / 397.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008931/0.2859, allocations: 0.594 MB / 397.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.286, allocations: 2.531 kB / 397.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001452/0.2874, allocations: 0.9135 MB / 398.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.2875, allocations: 8.688 kB / 398.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.819e-05/0.2875, allocations: 67.17 kB / 398.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000397/0.2879, allocations: 160.5 kB / 399.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000431/0.2884, allocations: 110.3 kB / 399.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002784/0.2912, allocations: 2.52 MB / 401.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008125/0.292, allocations: 29.03 kB / 401.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.2921, allocations: 35.53 kB / 401.8 MB, free: 9.848 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.0004131/0.2925, allocations: 275.1 kB / 402 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002111/0.2927, allocations: 187.3 kB / 402.2 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/0.2946, allocations: 0.8759 MB / 403.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.2947, allocations: 8.312 kB / 403.1 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2947, allocations: 3.094 kB / 403.1 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.2947, allocations: 7.859 kB / 403.1 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.2958, allocations: 0.8633 MB / 404 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.25e-05/0.2958, allocations: 59.98 kB / 404 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.2962, allocations: 63.23 kB / 404.1 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004122/0.2966, allocations: 148.6 kB / 404.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.422e-05/0.2966, allocations: 19.98 kB / 404.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002965/0.2996, allocations: 2.503 MB / 406.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2996, allocations: 4.031 kB / 406.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/0.3016, allocations: 1.06 MB / 407.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.302, allocations: 254.9 kB / 408.1 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.3022, allocations: 12 kB / 408.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003851/0.3026, allocations: 19.97 kB / 408.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.3027, allocations: 44.39 kB / 408.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.3027, allocations: 19.98 kB / 408.2 MB, free: 3.922 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.3039, allocations: 0.8635 MB / 409 MB, free: 3.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3039, allocations: 0.8438 kB / 409 MB, free: 3.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001011/0.3049, allocations: 375.8 kB / 409.4 MB, free: 2.703 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.0007237/0.3057, allocations: 467.5 kB / 409.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.3073, allocations: 0.8568 MB / 410.7 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3073, allocations: 0 / 410.7 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009208/0.3082, allocations: 0.5843 MB / 411.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008994/0.3092, allocations: 209.5 kB / 411.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.3127, allocations: 2.845 MB / 414.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006124/0.3133, allocations: 1.174 MB / 415.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005903/0.3139, allocations: 191.1 kB / 415.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.314, allocations: 83.44 kB / 415.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.314, allocations: 0 / 415.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Templates: time 0.02457/0.3386, allocations: 13.37 MB / 429.2 MB, free: 15.05 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/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