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.001111/0.001112, allocations: 96.5 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.001518/0.001518, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.7 MB / 247.5 MB, free: 9.672 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.000277, allocations: 8 kB / 308.4 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1009, allocations: 51.53 MB / 359.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00583/0.1068, allocations: 4.924 MB / 364.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003265/0.1101, allocations: 1.496 MB / 366.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007727/0.1109, allocations: 27.81 kB / 366.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005827/0.1115, allocations: 162.6 kB / 366.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.1125, allocations: 150.7 kB / 366.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009872/0.1135, allocations: 359.6 kB / 367 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001417/0.115, allocations: 1.068 MB / 368.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007448/0.1157, allocations: 431.4 kB / 368.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005724/0.1163, allocations: 338.2 kB / 368.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.1169, allocations: 373.5 kB / 369.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.117, allocations: 40 kB / 369.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.1172, allocations: 56 kB / 369.3 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.1173, allocations: 159.1 kB / 369.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004803/0.1178, allocations: 470.7 kB / 369.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007491/0.1186, allocations: 0.791 MB / 370.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1186, allocations: 0 / 370.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1186, allocations: 3.984 kB / 370.7 MB, free: 2.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.265e-05/0.1187, allocations: 4 kB / 370.7 MB, free: 2.223 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.001899/0.1206, allocations: 1.122 MB / 371.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.067e-05/0.1206, allocations: 8.031 kB / 371.8 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000431/0.1211, allocations: 150.5 kB / 372 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009354/0.122, allocations: 0.6263 MB / 372.6 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.936e-05/0.1221, allocations: 77.94 kB / 372.7 MB, free: 152 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.1222, allocations: 99.91 kB / 372.8 MB, free: 52 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1724/0.2946, allocations: 1.029 MB / 373.8 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.954e-05/0.2947, allocations: 9.875 kB / 373.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.755e-05/0.2948, allocations: 44.75 kB / 373.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.862e-05/0.2949, allocations: 26.16 kB / 373.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.2963, allocations: 0.5633 MB / 374.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005142/0.3014, allocations: 5.527 MB / 380 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005629/0.302, allocations: 245.3 kB / 380.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.3023, allocations: 158.7 kB / 380.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001242/0.3024, allocations: 83.78 kB / 380.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.3025, allocations: 36.88 kB / 380.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.174e-06/0.3025, allocations: 7.406 kB / 380.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003704/0.3062, allocations: 1.776 MB / 382.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.3062, allocations: 89.45 kB / 382.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007671/0.307, allocations: 0.6478 MB / 383 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.307, allocations: 30.92 kB / 383 MB, free: 12.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003138/0.3074, allocations: 0.5977 MB / 383.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.779e-05/0.3075, allocations: 146.7 kB / 383.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.417e-05/0.3076, allocations: 67.97 kB / 383.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3077, allocations: 387.8 kB / 384.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003456/0.3081, allocations: 160.1 kB / 384.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.3085, allocations: 0.4941 MB / 384.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008573/0.3094, allocations: 0.7199 MB / 385.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/0.3094, allocations: 4.25 kB / 385.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001302/0.3107, allocations: 0.7211 MB / 386.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.3107, allocations: 16.19 kB / 386.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.3108, allocations: 11.84 kB / 386.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/0.3108, allocations: 17.05 kB / 386.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006499/0.3115, allocations: 207.3 kB / 386.6 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.219e-05/0.3115, allocations: 23.77 kB / 386.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003963/0.3119, allocations: 41.28 kB / 386.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.396e-05/0.312, allocations: 37.12 kB / 386.7 MB, free: 9.977 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.0002846/0.3123, allocations: 236 kB / 386.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3124, allocations: 79.52 kB / 387 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001429/0.3126, allocations: 76.61 kB / 387 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.3126, allocations: 9.688 kB / 387.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.939e-05/0.3126, allocations: 1.125 kB / 387.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.3126, allocations: 1.5 kB / 387.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/0.315, allocations: 1.349 MB / 388.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3151, allocations: 2.25 kB / 388.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.3155, allocations: 118.5 kB / 388.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/0.3156, allocations: 6.203 kB / 388.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.3156, allocations: 13.62 kB / 388.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.3156, allocations: 7.734 kB / 388.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3156, allocations: 2.219 kB / 388.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.3167, allocations: 0.7203 MB / 389.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.3168, allocations: 146.6 kB / 389.4 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.516e-05/0.3169, allocations: 12.83 kB / 389.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.3172, allocations: 38.23 kB / 389.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.781e-05/0.3173, allocations: 25.98 kB / 389.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.3173, allocations: 11.12 kB / 389.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005386/0.3178, allocations: 427 kB / 389.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3178, allocations: 0 / 389.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007127/0.3186, allocations: 137.8 kB / 390.1 MB, free: 8.113 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.0001389/0.3187, allocations: 118.1 kB / 390.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008796/0.3196, allocations: 450.5 kB / 390.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3196, allocations: 1.469 kB / 390.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.3199, allocations: 158.9 kB / 390.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006879/0.3206, allocations: 78.03 kB / 390.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/0.3237, allocations: 2.243 MB / 393.1 MB, free: 6.273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005839/0.3243, allocations: 1.006 MB / 394.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.3245, allocations: 68.69 kB / 394.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3245, allocations: 0 / 394.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of Templates: time 0.01516/0.3396, allocations: 9.098 MB / 403.3 MB, free: 0.8203 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