Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 109.5 kB / 17.06 MB, free: 6.125 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.001398/0.001398, allocations: 191 kB / 18 MB, free: 5.207 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.647/1.647, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 47.92 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3884, allocations: 49.42 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006965/0.3954, allocations: 5.381 MB / 406.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.3988, allocations: 1.434 MB / 407.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006004/0.3994, allocations: 31.81 kB / 407.6 MB, free: 2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005911/0.4, allocations: 217.8 kB / 407.8 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006238/0.4007, allocations: 202 kB / 408 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008801/0.4015, allocations: 395.4 kB / 408.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.4027, allocations: 1.119 MB / 409.5 MB, free: 76 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006651/0.4034, allocations: 484.2 kB / 410 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005135/0.4039, allocations: 390.3 kB / 410.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004055/0.4043, allocations: 433.5 kB / 410.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.4045, allocations: 88 kB / 410.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.4046, allocations: 104 kB / 411 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.4048, allocations: 211.1 kB / 411.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004253/0.4052, allocations: 0.4932 MB / 411.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.4064, allocations: 1.176 MB / 412.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4065, allocations: 0 / 412.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4065, allocations: 0 / 412.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.4065, allocations: 0 / 412.8 MB, free: 12.7 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002058/0.4085, allocations: 1.304 MB / 414.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.479e-05/0.4086, allocations: 15.89 kB / 414.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000223/0.4089, allocations: 130.4 kB / 414.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.4101, allocations: 0.642 MB / 414.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.772e-05/0.4101, allocations: 77.94 kB / 415 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.4103, allocations: 99.91 kB / 415.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.4122, allocations: 1.034 MB / 416.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/0.4122, allocations: 7.938 kB / 416.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.399e-05/0.4123, allocations: 44 kB / 416.2 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.198e-05/0.4124, allocations: 28 kB / 416.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.4136, allocations: 0.5617 MB / 416.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005577/0.4192, allocations: 5.493 MB / 422.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006621/0.4199, allocations: 236.8 kB / 422.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003316/0.4202, allocations: 153.6 kB / 422.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001548/0.4204, allocations: 89.09 kB / 422.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.4204, allocations: 38.56 kB / 422.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.856e-06/0.4205, allocations: 0 / 422.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004455/0.4249, allocations: 1.714 MB / 424.5 MB, free: 408 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.425, allocations: 89.05 kB / 424.6 MB, free: 300 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007783/0.4258, allocations: 0.6372 MB / 425.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.4258, allocations: 33.7 kB / 425.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003986/0.4263, allocations: 0.5987 MB / 425.8 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.4264, allocations: 146 kB / 426 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.4265, allocations: 138.5 kB / 426.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4267, allocations: 382.8 kB / 426.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003055/0.427, allocations: 149.9 kB / 426.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005536/0.4276, allocations: 0.4933 MB / 427.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009116/0.4285, allocations: 0.7036 MB / 427.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.4285, allocations: 4 kB / 427.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001174/0.4297, allocations: 0.7066 MB / 428.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.4297, allocations: 12 kB / 428.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.4298, allocations: 20.06 kB / 428.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.903e-05/0.4298, allocations: 16 kB / 428.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006843/0.4305, allocations: 195.7 kB / 428.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.713e-05/0.4305, allocations: 23.88 kB / 428.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.4309, allocations: 35.98 kB / 428.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.431, allocations: 36 kB / 428.9 MB, free: 11.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003832/0.4314, allocations: 233.5 kB / 429.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.4315, allocations: 75.06 kB / 429.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.4316, allocations: 70.55 kB / 429.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.4317, allocations: 4 kB / 429.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.4317, allocations: 3.938 kB / 429.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.4317, allocations: 3.984 kB / 429.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.434, allocations: 1.325 MB / 430.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.434, allocations: 0 / 430.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004759/0.4345, allocations: 108 kB / 430.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/0.4345, allocations: 4 kB / 430.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.4345, allocations: 11.94 kB / 430.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.4346, allocations: 7.938 kB / 430.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4346, allocations: 0 / 430.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.4356, allocations: 0.6931 MB / 431.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.4357, allocations: 144 kB / 431.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.786e-05/0.4358, allocations: 20.09 kB / 431.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.4361, allocations: 23.92 kB / 431.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.809e-05/0.4362, allocations: 31.94 kB / 431.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.4362, allocations: 12 kB / 431.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005049/0.4367, allocations: 423 kB / 432.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4367, allocations: 0 / 432.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007186/0.4374, allocations: 136 kB / 432.2 MB, free: 8.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001691/0.4376, allocations: 119.1 kB / 432.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008147/0.4384, allocations: 440.5 kB / 432.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4384, allocations: 1.75 kB / 432.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.4387, allocations: 155.7 kB / 432.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007237/0.4395, allocations: 75.61 kB / 433 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003185/0.4427, allocations: 1.642 MB / 434.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007959/0.4435, allocations: 1.004 MB / 435.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002943/0.4438, allocations: 90.02 kB / 435.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.444, allocations: 67.41 kB / 435.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.444, allocations: 0 / 435.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of Templates: time 0.01341/0.4574, allocations: 5.095 MB / 440.9 MB, free: 15.44 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches