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.001588/0.001588, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002021/0.002021, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.545/2.545, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 63.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4027, allocations: 50.54 MB / 410 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.01298/0.4157, allocations: 5.389 MB / 415.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005559/0.4213, allocations: 1.519 MB / 416.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.4225, allocations: 27.88 kB / 416.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009934/0.4235, allocations: 217.8 kB / 417.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.4249, allocations: 194 kB / 417.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.4266, allocations: 419.3 kB / 417.7 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002272/0.4289, allocations: 1.126 MB / 418.8 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.43, allocations: 480.3 kB / 419.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008955/0.431, allocations: 410.3 kB / 419.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007657/0.4317, allocations: 433.4 kB / 420.1 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.432, allocations: 84 kB / 420.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003407/0.4323, allocations: 108 kB / 420.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.4326, allocations: 211.1 kB / 420.5 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006694/0.4333, allocations: 0.4932 MB / 421 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001864/0.4352, allocations: 1.18 MB / 422.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.4352, allocations: 0 / 422.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4352, allocations: 0 / 422.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.877e-05/0.4353, allocations: 0 / 422.2 MB, free: 5.297 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.003206/0.4385, allocations: 1.313 MB / 423.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.4386, allocations: 12.03 kB / 423.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007074/0.4393, allocations: 146.5 kB / 423.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/0.4412, allocations: 0.6536 MB / 424.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.4414, allocations: 81.88 kB / 424.4 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002179/0.4416, allocations: 99.91 kB / 424.5 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003208/0.4448, allocations: 1.027 MB / 425.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.504e-05/0.4449, allocations: 7.938 kB / 425.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.4451, allocations: 48 kB / 425.6 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.832e-05/0.4451, allocations: 27.94 kB / 425.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002301/0.4474, allocations: 0.55 MB / 426.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01032/0.4578, allocations: 5.489 MB / 431.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.4591, allocations: 240.9 kB / 431.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005221/0.4596, allocations: 157.6 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001865/0.4598, allocations: 93.08 kB / 432.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.4599, allocations: 34.56 kB / 432.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 3.817e-06/0.4599, allocations: 0 / 432.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.006937/0.4668, allocations: 1.723 MB / 433.9 MB, free: 8.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.467, allocations: 85.05 kB / 434 MB, free: 8.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.4683, allocations: 0.6373 MB / 434.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.4684, allocations: 33.7 kB / 434.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006337/0.469, allocations: 0.5987 MB / 435.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.4692, allocations: 146 kB / 435.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002772/0.4695, allocations: 134.5 kB / 435.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002285/0.4698, allocations: 390.8 kB / 435.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005484/0.4703, allocations: 145.9 kB / 436 MB, free: 6.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008979/0.4712, allocations: 0.4932 MB / 436.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.4729, allocations: 0.7036 MB / 437.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.4729, allocations: 4 kB / 437.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002366/0.4753, allocations: 0.718 MB / 437.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.4753, allocations: 12 kB / 438 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-05/0.4754, allocations: 12 kB / 438 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.587e-05/0.4754, allocations: 16 kB / 438 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.4768, allocations: 191.7 kB / 438.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-05/0.4769, allocations: 28.19 kB / 438.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007973/0.4777, allocations: 39.98 kB / 438.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.742e-05/0.4778, allocations: 40 kB / 438.3 MB, free: 4.16 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.0005605/0.4784, allocations: 225.5 kB / 438.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.4786, allocations: 79.06 kB / 438.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.4789, allocations: 74.53 kB / 438.6 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.4789, allocations: 4 kB / 438.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.4789, allocations: 7.922 kB / 438.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.4789, allocations: 0 / 438.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004055/0.483, allocations: 1.331 MB / 440 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.483, allocations: 0 / 440 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.4841, allocations: 99.86 kB / 440.1 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.356e-05/0.4841, allocations: 7.938 kB / 440.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.312e-05/0.4842, allocations: 15.94 kB / 440.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.354e-05/0.4842, allocations: 4 kB / 440.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4842, allocations: 0 / 440.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.4863, allocations: 0.705 MB / 440.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.4865, allocations: 140.1 kB / 441 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.4867, allocations: 12 kB / 441 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006126/0.4873, allocations: 24.02 kB / 441 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.4875, allocations: 27.91 kB / 441 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.925e-05/0.4875, allocations: 20 kB / 441 MB, free: 1.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009496/0.4885, allocations: 423 kB / 441.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4885, allocations: 0 / 441.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001354/0.4899, allocations: 140 kB / 441.6 MB, free: 0.7148 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.0002312/0.4901, allocations: 107.2 kB / 441.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.4917, allocations: 434.2 kB / 442.1 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.4918, allocations: 4.375 kB / 442.1 MB, free: 180 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005151/0.4923, allocations: 155.8 kB / 442.3 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.4933, allocations: 74.11 kB / 442.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00476/0.4981, allocations: 1.695 MB / 444 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008846/0.499, allocations: 1 MB / 445 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003448/0.4994, allocations: 67.41 kB / 445.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4994, allocations: 0 / 445.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of Templates: time 0.02577/0.5252, allocations: 9.527 MB / 454.6 MB, free: 3.57 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches