Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001399/0.001399, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001543, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 67.88 kB / 358.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.4109, allocations: 50.55 MB / 409.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007598/0.4185, allocations: 5.388 MB / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.4225, allocations: 1.512 MB / 416.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.4239, allocations: 27.81 kB / 416.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000883/0.4249, allocations: 217.8 kB / 416.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009989/0.4259, allocations: 198 kB / 416.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.4271, allocations: 419.3 kB / 417 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.4285, allocations: 1.134 MB / 418.2 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006943/0.4292, allocations: 488.2 kB / 418.6 MB, free: 8.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005834/0.4298, allocations: 398.3 kB / 419 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004454/0.4302, allocations: 445.4 kB / 419.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.4303, allocations: 84 kB / 419.5 MB, free: 7.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.4305, allocations: 104 kB / 419.6 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.4307, allocations: 211.2 kB / 419.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004202/0.4312, allocations: 0.4931 MB / 420.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.4325, allocations: 1.18 MB / 421.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4325, allocations: 0 / 421.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4325, allocations: 0 / 421.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.173e-05/0.4325, allocations: 0 / 421.5 MB, free: 5.242 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.002001/0.4345, allocations: 1.321 MB / 422.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.4346, allocations: 8.031 kB / 422.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000427/0.435, allocations: 138.5 kB / 423 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.4362, allocations: 0.6615 MB / 423.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.924e-05/0.4363, allocations: 77.94 kB / 423.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.4364, allocations: 99.91 kB / 423.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.438, allocations: 1.027 MB / 424.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.688e-05/0.4381, allocations: 11.92 kB / 424.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.314e-05/0.4382, allocations: 44 kB / 424.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.4382, allocations: 28 kB / 424.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.4393, allocations: 0.5578 MB / 425.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005152/0.4445, allocations: 5.489 MB / 431 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005775/0.4451, allocations: 232.9 kB / 431.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.4454, allocations: 157.6 kB / 431.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.4456, allocations: 97.08 kB / 431.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.4456, allocations: 34.56 kB / 431.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.154e-06/0.4456, allocations: 0 / 431.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003761/0.4494, allocations: 1.713 MB / 433.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.4495, allocations: 89.05 kB / 433.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006525/0.4501, allocations: 0.6412 MB / 433.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.4502, allocations: 37.64 kB / 434 MB, free: 8.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003532/0.4505, allocations: 0.5987 MB / 434.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.805e-05/0.4506, allocations: 146 kB / 434.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.4508, allocations: 138.5 kB / 434.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4509, allocations: 382.8 kB / 435.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.4512, allocations: 157.9 kB / 435.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.4517, allocations: 493.1 kB / 435.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.4526, allocations: 0.7099 MB / 436.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.4526, allocations: 4 kB / 436.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001102/0.4537, allocations: 0.7116 MB / 437.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.4538, allocations: 12 kB / 437.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.4538, allocations: 12 kB / 437.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.011e-05/0.4538, allocations: 16 kB / 437.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/0.4545, allocations: 195.7 kB / 437.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.627e-05/0.4545, allocations: 31.8 kB / 437.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.4548, allocations: 32.12 kB / 437.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.771e-05/0.4549, allocations: 47.98 kB / 437.6 MB, free: 4.094 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.000313/0.4552, allocations: 221.5 kB / 437.8 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.4553, allocations: 75.06 kB / 437.9 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.4554, allocations: 78.58 kB / 438 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4555, allocations: 4 kB / 438 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.4555, allocations: 3.938 kB / 438 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4555, allocations: 4 kB / 438 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.4574, allocations: 1.319 MB / 439.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4574, allocations: 12.03 kB / 439.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.4579, allocations: 99.86 kB / 439.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.4579, allocations: 3.938 kB / 439.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.4579, allocations: 23.92 kB / 439.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.4579, allocations: 0 / 439.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.4579, allocations: 4 kB / 439.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009029/0.4589, allocations: 0.697 MB / 440.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.459, allocations: 140.1 kB / 440.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.459, allocations: 16.03 kB / 440.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.4593, allocations: 19.98 kB / 440.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.493e-05/0.4594, allocations: 27.97 kB / 440.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.4594, allocations: 19.92 kB / 440.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004467/0.4599, allocations: 423 kB / 440.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4599, allocations: 0 / 440.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007196/0.4606, allocations: 140 kB / 440.9 MB, free: 0.6562 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.0001507/0.4608, allocations: 111.2 kB / 441 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007576/0.4615, allocations: 436.8 kB / 441.4 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4616, allocations: 0 / 441.4 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.4618, allocations: 160.4 kB / 441.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005154/0.4624, allocations: 71.3 kB / 441.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.4649, allocations: 1.654 MB / 443.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005638/0.4655, allocations: 1.004 MB / 444.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002467/0.4658, allocations: 94.05 kB / 444.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.4659, allocations: 63.42 kB / 444.5 MB, free: 13 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4659, allocations: 0 / 444.5 MB, free: 13 MB / 366.1 MB Notification: Performance of Templates: time 0.01148/0.4774, allocations: 5.104 MB / 449.6 MB, free: 7.91 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches