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.001006/0.001006, allocations: 93.33 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002371/0.0002371, allocations: 8 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09688, allocations: 51.52 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005104/0.102, allocations: 4.935 MB / 364.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003002/0.1051, allocations: 1.489 MB / 366.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007595/0.1059, allocations: 23.88 kB / 366.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004266/0.1063, allocations: 166.6 kB / 366.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005259/0.1069, allocations: 154.6 kB / 366.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008286/0.1077, allocations: 351.6 kB / 367 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.1088, allocations: 1.072 MB / 368.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005631/0.1093, allocations: 431.4 kB / 368.5 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004628/0.1098, allocations: 330.3 kB / 368.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004061/0.1102, allocations: 377.5 kB / 369.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-05/0.1103, allocations: 40 kB / 369.2 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.1105, allocations: 59.94 kB / 369.3 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.1106, allocations: 151.2 kB / 369.4 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003565/0.111, allocations: 482.7 kB / 369.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006663/0.1116, allocations: 0.791 MB / 370.7 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1117, allocations: 3.984 kB / 370.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1117, allocations: 0 / 370.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.1117, allocations: 0 / 370.7 MB, free: 2.441 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001585/0.1133, allocations: 1.122 MB / 371.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1133, allocations: 8.031 kB / 371.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.1137, allocations: 154.5 kB / 372 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008294/0.1145, allocations: 0.6263 MB / 372.6 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.729e-05/0.1146, allocations: 73.94 kB / 372.7 MB, free: 376 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.1147, allocations: 103.9 kB / 372.8 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1966/0.3113, allocations: 1.029 MB / 373.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.63e-05/0.3114, allocations: 7.359 kB / 373.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.3116, allocations: 45.09 kB / 373.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.652e-05/0.3116, allocations: 26.38 kB / 373.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.3131, allocations: 0.568 MB / 374.5 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005114/0.3182, allocations: 5.518 MB / 380 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005452/0.3188, allocations: 244.6 kB / 380.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.3191, allocations: 158.8 kB / 380.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001396/0.3193, allocations: 89.64 kB / 380.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.3193, allocations: 41.56 kB / 380.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.967e-06/0.3193, allocations: 1.078 kB / 380.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003985/0.3233, allocations: 1.771 MB / 382.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.3233, allocations: 87.39 kB / 382.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007579/0.3241, allocations: 0.6379 MB / 383 MB, free: 12.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.3242, allocations: 39.44 kB / 383 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003515/0.3245, allocations: 0.5935 MB / 383.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.958e-05/0.3246, allocations: 158.4 kB / 383.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.896e-05/0.3247, allocations: 63.86 kB / 383.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.3248, allocations: 384.6 kB / 384.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003364/0.3252, allocations: 159.2 kB / 384.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/0.3256, allocations: 0.4983 MB / 384.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008432/0.3265, allocations: 0.7188 MB / 385.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-06/0.3265, allocations: 3.156 kB / 385.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001243/0.3278, allocations: 0.7295 MB / 386.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3278, allocations: 10.16 kB / 386.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.3278, allocations: 12.12 kB / 386.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.565e-05/0.3279, allocations: 17.03 kB / 386.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006468/0.3285, allocations: 202 kB / 386.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.229e-05/0.3285, allocations: 24.27 kB / 386.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/0.329, allocations: 39.86 kB / 386.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-05/0.329, allocations: 45.8 kB / 386.7 MB, free: 10.18 MB / 302.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.0003186/0.3294, allocations: 234.7 kB / 386.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.3295, allocations: 80.75 kB / 387 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.3296, allocations: 73.95 kB / 387 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3296, allocations: 10.62 kB / 387.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.3297, allocations: 0 / 387.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.3297, allocations: 7.656 kB / 387.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.332, allocations: 1.348 MB / 388.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.332, allocations: 1.094 kB / 388.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004744/0.3325, allocations: 114.4 kB / 388.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/0.3325, allocations: 3.281 kB / 388.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.3325, allocations: 17.42 kB / 388.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.3325, allocations: 8.906 kB / 388.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3325, allocations: 4.688 kB / 388.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.3336, allocations: 0.7235 MB / 389.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.3337, allocations: 141.3 kB / 389.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.248e-05/0.3338, allocations: 17.59 kB / 389.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/0.3341, allocations: 29.14 kB / 389.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.142e-05/0.3342, allocations: 27.94 kB / 389.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.3342, allocations: 14.8 kB / 389.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005578/0.3348, allocations: 421.9 kB / 389.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3348, allocations: 1.188 kB / 389.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007412/0.3355, allocations: 140 kB / 390.1 MB, free: 8.312 MB / 302.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.0001359/0.3357, allocations: 115.6 kB / 390.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008935/0.3366, allocations: 447 kB / 390.6 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3366, allocations: 4.062 kB / 390.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.3369, allocations: 164 kB / 390.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006855/0.3376, allocations: 73.53 kB / 390.8 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.3407, allocations: 2.238 MB / 393.1 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.3413, allocations: 1.005 MB / 394.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.3416, allocations: 72.77 kB / 394.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3416, allocations: 0 / 394.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01504/0.3566, allocations: 9.113 MB / 403.3 MB, free: 0.9805 MB / 302.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