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.001154/0.001158, allocations: 114.1 kB / 17.29 MB, free: 6.207 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.001427/0.001427, allocations: 197.3 kB / 18.21 MB, free: 5.281 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.326/1.326, allocations: 222.9 MB / 241.9 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.001011, allocations: 46.39 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.09969, allocations: 49.45 MB / 350.2 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006044/0.1058, allocations: 5.358 MB / 355.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.1084, allocations: 1.414 MB / 357 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008994/0.1093, allocations: 27.88 kB / 357 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006559/0.11, allocations: 162.6 kB / 357.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007083/0.1108, allocations: 150.7 kB / 357.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008432/0.1116, allocations: 343.6 kB / 357.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.1128, allocations: 1.13 MB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006138/0.1134, allocations: 488.2 kB / 359.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004476/0.1139, allocations: 398.3 kB / 359.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004548/0.1143, allocations: 425.6 kB / 360.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1144, allocations: 84 kB / 360.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.1146, allocations: 99.94 kB / 360.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.1148, allocations: 223.1 kB / 360.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003641/0.1151, allocations: 0.4893 MB / 361 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007887/0.1159, allocations: 0.8731 MB / 361.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.116, allocations: 4 kB / 361.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.116, allocations: 0 / 361.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.116, allocations: 0 / 361.9 MB, free: 8.828 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.001702/0.1177, allocations: 1.305 MB / 363.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1177, allocations: 11.89 kB / 363.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.1179, allocations: 126.5 kB / 363.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007702/0.1187, allocations: 0.6107 MB / 363.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.031e-05/0.1187, allocations: 77.94 kB / 364 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1189, allocations: 96 kB / 364.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.1204, allocations: 1.031 MB / 365.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.1205, allocations: 7.938 kB / 365.1 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.815e-05/0.1205, allocations: 44 kB / 365.2 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.1206, allocations: 24 kB / 365.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.1216, allocations: 0.5578 MB / 365.7 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1549/0.2766, allocations: 5.513 MB / 371.3 MB, free: 21.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.2772, allocations: 233.8 kB / 371.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.2776, allocations: 162.1 kB / 371.6 MB, free: 21.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001764/0.2777, allocations: 93.44 kB / 371.7 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/0.2778, allocations: 36.52 kB / 371.8 MB, free: 21.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.875e-06/0.2778, allocations: 2.078 kB / 371.8 MB, free: 21.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003886/0.2817, allocations: 1.717 MB / 373.5 MB, free: 20.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.2817, allocations: 87.23 kB / 373.6 MB, free: 20.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007111/0.2824, allocations: 0.6338 MB / 374.2 MB, free: 20.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.2825, allocations: 31.02 kB / 374.2 MB, free: 20.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/0.2828, allocations: 0.6005 MB / 374.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.073e-05/0.2829, allocations: 146.5 kB / 375 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.2831, allocations: 138.4 kB / 375.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.2832, allocations: 388.2 kB / 375.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002997/0.2835, allocations: 152 kB / 375.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.2839, allocations: 0.4885 MB / 376.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006934/0.2846, allocations: 0.6882 MB / 376.8 MB, free: 18.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.2846, allocations: 4.344 kB / 376.8 MB, free: 18.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001029/0.2856, allocations: 0.7188 MB / 377.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2856, allocations: 14.83 kB / 377.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.2857, allocations: 14.94 kB / 377.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-05/0.2857, allocations: 16.5 kB / 377.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.2863, allocations: 198.5 kB / 377.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.342e-05/0.2864, allocations: 23.02 kB / 377.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/0.2867, allocations: 38.97 kB / 377.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.2868, allocations: 39.69 kB / 377.9 MB, free: 18.07 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.0002474/0.287, allocations: 230 kB / 378.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.2871, allocations: 74.52 kB / 378.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.2872, allocations: 80.92 kB / 378.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.2873, allocations: 4.281 kB / 378.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.2873, allocations: 2.422 kB / 378.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.2873, allocations: 5.203 kB / 378.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.2892, allocations: 1.324 MB / 379.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2892, allocations: 2.25 kB / 379.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004544/0.2897, allocations: 102.6 kB / 379.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.2897, allocations: 8 kB / 379.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.2897, allocations: 7.938 kB / 379.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.2898, allocations: 11.62 kB / 379.7 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2898, allocations: 4.609 kB / 379.7 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.2906, allocations: 0.6885 MB / 380.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.705e-05/0.2907, allocations: 152 kB / 380.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.207e-05/0.2908, allocations: 8.969 kB / 380.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.2911, allocations: 25.97 kB / 380.6 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.257e-05/0.2912, allocations: 30.66 kB / 380.6 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.2912, allocations: 18.94 kB / 380.6 MB, free: 16.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004275/0.2916, allocations: 419.7 kB / 381.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2916, allocations: 0 / 381.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006804/0.2923, allocations: 141.3 kB / 381.2 MB, free: 16.23 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.0001067/0.2924, allocations: 110.3 kB / 381.3 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007526/0.2932, allocations: 453.3 kB / 381.7 MB, free: 16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2932, allocations: 1.281 kB / 381.7 MB, free: 16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.2935, allocations: 153.3 kB / 381.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005325/0.294, allocations: 78.06 kB / 382 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.2965, allocations: 2.14 MB / 384.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.297, allocations: 1.007 MB / 385.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.2971, allocations: 76.55 kB / 385.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2971, allocations: 1.156 kB / 385.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01303/0.3102, allocations: 9.218 MB / 394.4 MB, free: 9.914 MB / 302.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/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_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches