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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002178/0.002178, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 100.7 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 39.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2766, allocations: 49.42 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005119/0.2818, allocations: 5.365 MB / 404.8 MB, free: 28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003302/0.2851, allocations: 1.417 MB / 406.2 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005252/0.2857, allocations: 27.81 kB / 406.3 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004412/0.2861, allocations: 166.6 kB / 406.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005479/0.2867, allocations: 142.7 kB / 406.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007769/0.2875, allocations: 347.6 kB / 406.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008962/0.2884, allocations: 1.08 MB / 408 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005637/0.289, allocations: 435.3 kB / 408.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00035/0.2893, allocations: 374.2 kB / 408.8 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.2897, allocations: 421.6 kB / 409.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.891e-05/0.2898, allocations: 56 kB / 409.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.2899, allocations: 68 kB / 409.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.2901, allocations: 195 kB / 409.5 MB, free: 23.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002853/0.2904, allocations: 477.1 kB / 410 MB, free: 22.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006176/0.291, allocations: 1.033 MB / 411 MB, free: 21.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.291, allocations: 0 / 411 MB, free: 21.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.291, allocations: 0 / 411 MB, free: 21.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.291, allocations: 0 / 411 MB, free: 21.78 MB / 298.7 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.001566/0.2926, allocations: 1.314 MB / 412.3 MB, free: 20.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.2927, allocations: 8.031 kB / 412.3 MB, free: 20.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.2929, allocations: 126.5 kB / 412.4 MB, free: 20.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007907/0.2937, allocations: 0.6068 MB / 413.1 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.325e-05/0.2937, allocations: 81.94 kB / 413.1 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.934e-05/0.2938, allocations: 99.98 kB / 413.2 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.295, allocations: 1.023 MB / 414.3 MB, free: 18.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.2951, allocations: 11.98 kB / 414.3 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.109e-05/0.2951, allocations: 44 kB / 414.3 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.2952, allocations: 31.92 kB / 414.3 MB, free: 18.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008954/0.2961, allocations: 0.55 MB / 414.9 MB, free: 17.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003432/0.2995, allocations: 5.516 MB / 420.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004612/0.3, allocations: 240.9 kB / 420.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.3002, allocations: 157.9 kB / 420.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002368/0.3005, allocations: 93.03 kB / 420.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.3005, allocations: 42.5 kB / 420.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.995e-06/0.3005, allocations: 0 / 420.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003217/0.3038, allocations: 1.71 MB / 422.6 MB, free: 9.473 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.3038, allocations: 85.05 kB / 422.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.3043, allocations: 0.6373 MB / 423.4 MB, free: 8.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.3043, allocations: 29.7 kB / 423.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/0.3046, allocations: 0.5988 MB / 424 MB, free: 8.082 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.762e-05/0.3046, allocations: 149.8 kB / 424.1 MB, free: 7.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.3048, allocations: 134.5 kB / 424.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.3049, allocations: 386.8 kB / 424.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.3051, allocations: 157.8 kB / 424.8 MB, free: 7.258 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.3055, allocations: 0.4894 MB / 425.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006342/0.3061, allocations: 0.7001 MB / 426 MB, free: 5.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3061, allocations: 4 kB / 426 MB, free: 5.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.000871/0.307, allocations: 0.7115 MB / 426.7 MB, free: 5.027 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.307, allocations: 12.16 kB / 426.7 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.3071, allocations: 16 kB / 426.7 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/0.3071, allocations: 16 kB / 426.7 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005409/0.3076, allocations: 195.7 kB / 426.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.3077, allocations: 27.86 kB / 427 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003087/0.308, allocations: 35.98 kB / 427 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/0.308, allocations: 36 kB / 427 MB, free: 4.695 MB / 298.7 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.0002232/0.3083, allocations: 237.4 kB / 427.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.968e-05/0.3083, allocations: 75.06 kB / 427.3 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.3085, allocations: 74.53 kB / 427.4 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.3085, allocations: 4 kB / 427.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.3085, allocations: 3.938 kB / 427.4 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3085, allocations: 3.984 kB / 427.4 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.3101, allocations: 1.313 MB / 428.7 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3101, allocations: 11.88 kB / 428.7 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/0.3105, allocations: 103.9 kB / 428.8 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3106, allocations: 4 kB / 428.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.3106, allocations: 11.98 kB / 428.9 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.3106, allocations: 11.92 kB / 428.9 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3106, allocations: 7.938 kB / 428.9 MB, free: 2.754 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002475/0.3131, allocations: 2.492 MB / 431.4 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.3132, allocations: 140.5 kB / 431.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.3133, allocations: 15.94 kB / 431.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.3136, allocations: 23.98 kB / 431.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.8e-05/0.3136, allocations: 31.89 kB / 431.6 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.3137, allocations: 12 kB / 431.6 MB, free: 15.87 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004145/0.3141, allocations: 423 kB / 432 MB, free: 15.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3141, allocations: 0 / 432 MB, free: 15.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007205/0.3148, allocations: 175.9 kB / 432.2 MB, free: 15.29 MB / 314.7 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.0001431/0.315, allocations: 115.1 kB / 432.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007213/0.3157, allocations: 433.7 kB / 432.7 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3157, allocations: 0 / 432.7 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002592/0.316, allocations: 152.7 kB / 432.9 MB, free: 14.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.3165, allocations: 79.77 kB / 432.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/0.3196, allocations: 2.346 MB / 435.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005336/0.3201, allocations: 1.016 MB / 436.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003043/0.3204, allocations: 94.02 kB / 436.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3206, allocations: 67.41 kB / 436.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of SimCode: time 7.62e-07/0.3206, allocations: 0 / 436.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of Templates: time 0.01061/0.3312, allocations: 5.04 MB / 441.5 MB, free: 5.891 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches