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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 107.9 kB / 17.06 MB, free: 5.82 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.0009844/0.0009845, allocations: 195.9 kB / 18 MB, free: 4.965 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.287/1.287, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 43.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2501, allocations: 49.43 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006591/0.2568, allocations: 5.389 MB / 405.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.2594, allocations: 1.43 MB / 407.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005/0.2599, allocations: 27.81 kB / 407.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004488/0.2604, allocations: 217.8 kB / 407.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004755/0.2609, allocations: 202 kB / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006784/0.2616, allocations: 387.4 kB / 407.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009532/0.2626, allocations: 1.134 MB / 409 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005842/0.2632, allocations: 476.2 kB / 409.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004173/0.2636, allocations: 398.3 kB / 409.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.264, allocations: 433.5 kB / 410.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.2641, allocations: 84 kB / 410.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.2643, allocations: 92 kB / 410.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.2645, allocations: 219.1 kB / 410.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003831/0.2649, allocations: 0.497 MB / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.2661, allocations: 1.177 MB / 412.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2661, allocations: 0 / 412.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2661, allocations: 0 / 412.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.2661, allocations: 0 / 412.4 MB, free: 12.62 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.001917/0.268, allocations: 1.343 MB / 413.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2681, allocations: 8.031 kB / 413.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.2682, allocations: 152.2 kB / 413.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.2684, allocations: 135.2 kB / 414 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009424/0.2693, allocations: 0.6543 MB / 414.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.313e-05/0.2694, allocations: 77.94 kB / 414.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.2695, allocations: 103.9 kB / 414.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.2711, allocations: 1.027 MB / 415.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.2712, allocations: 11.92 kB / 415.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-05/0.2713, allocations: 47.98 kB / 415.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.019e-05/0.2713, allocations: 24 kB / 415.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.2724, allocations: 0.5578 MB / 416.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004554/0.2769, allocations: 5.502 MB / 422 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005512/0.2775, allocations: 236.9 kB / 422.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002862/0.2778, allocations: 153.6 kB / 422.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001325/0.2779, allocations: 89.11 kB / 422.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.278, allocations: 38.56 kB / 422.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.844e-06/0.278, allocations: 0 / 422.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003714/0.2817, allocations: 1.735 MB / 424.2 MB, free: 96 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.2818, allocations: 89.03 kB / 424.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006247/0.2824, allocations: 0.6373 MB / 425 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.2824, allocations: 33.7 kB / 425 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/0.2828, allocations: 0.6161 MB / 425.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.703e-05/0.2829, allocations: 154.8 kB / 425.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.283, allocations: 134.6 kB / 425.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2832, allocations: 382.8 kB / 426.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.2835, allocations: 153.9 kB / 426.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.284, allocations: 0.4932 MB / 426.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008122/0.2848, allocations: 0.702 MB / 427.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/0.2848, allocations: 4 kB / 427.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001072/0.2859, allocations: 0.7122 MB / 428.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.2859, allocations: 10.5 kB / 428.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.286, allocations: 15.94 kB / 428.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.286, allocations: 20.03 kB / 428.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006096/0.2866, allocations: 203.6 kB / 428.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.264e-05/0.2867, allocations: 27.86 kB / 428.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003456/0.287, allocations: 28 kB / 428.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.2871, allocations: 39.98 kB / 428.7 MB, free: 11.28 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.0002819/0.2873, allocations: 225.6 kB / 428.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.2875, allocations: 79.48 kB / 429 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.2876, allocations: 74.53 kB / 429 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2876, allocations: 7.938 kB / 429 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.2876, allocations: 4 kB / 429 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.2876, allocations: 0 / 429 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/0.2895, allocations: 1.329 MB / 430.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/0.2896, allocations: 4 kB / 430.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/0.29, allocations: 108 kB / 430.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.29, allocations: 3.938 kB / 430.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.2901, allocations: 12 kB / 430.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2901, allocations: 7.922 kB / 430.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2901, allocations: 4 kB / 430.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008923/0.291, allocations: 0.6974 MB / 431.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.2911, allocations: 140.6 kB / 431.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.921e-05/0.2912, allocations: 12.05 kB / 431.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002903/0.2915, allocations: 27.97 kB / 431.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.031e-05/0.2915, allocations: 27.91 kB / 431.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.2916, allocations: 19.98 kB / 431.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004237/0.292, allocations: 419 kB / 431.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.292, allocations: 0 / 431.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006297/0.2926, allocations: 136 kB / 432 MB, free: 7.836 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.001197/0.2938, allocations: 1.258 MB / 433.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007462/0.2946, allocations: 441.8 kB / 433.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2946, allocations: 4.688 kB / 433.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.2949, allocations: 155.8 kB / 433.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.2954, allocations: 81.22 kB / 433.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007465/0.3029, allocations: 6.122 MB / 440 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005377/0.3035, allocations: 1 MB / 441 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002768/0.3038, allocations: 97.94 kB / 441.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000405/0.3042, allocations: 387.3 kB / 441.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3042, allocations: 0 / 441.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.3354, allocations: 11.66 MB / 453.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.366/8.702, allocations: 7.609 kB / 453.2 MB, free: 2.215 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/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