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.001401/0.001401, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001525/0.001525, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.409/1.409, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 46.2 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.1013, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006647/0.108, allocations: 5.37 MB / 355.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003186/0.1112, allocations: 1.442 MB / 357 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009331/0.1122, allocations: 23.88 kB / 357 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008465/0.1131, allocations: 217.8 kB / 357.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009502/0.1141, allocations: 186 kB / 357.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.1152, allocations: 399.4 kB / 357.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001433/0.1166, allocations: 1.123 MB / 358.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007251/0.1174, allocations: 488.2 kB / 359.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005675/0.118, allocations: 386.4 kB / 359.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005539/0.1185, allocations: 433.5 kB / 360.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.1187, allocations: 84 kB / 360.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000274/0.119, allocations: 95.98 kB / 360.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.1192, allocations: 219 kB / 360.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.1196, allocations: 0.4893 MB / 361.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1207, allocations: 1.125 MB / 362.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1207, allocations: 0 / 362.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1207, allocations: 0 / 362.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.043e-05/0.1207, allocations: 4 kB / 362.2 MB, free: 8.191 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.001775/0.1225, allocations: 1.301 MB / 363.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.1226, allocations: 15.89 kB / 363.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.1227, allocations: 156.2 kB / 363.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.1229, allocations: 126.4 kB / 363.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007911/0.1237, allocations: 0.6146 MB / 364.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.752e-05/0.1238, allocations: 73.94 kB / 364.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.1239, allocations: 100 kB / 364.6 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.1254, allocations: 1.027 MB / 365.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.1255, allocations: 11.94 kB / 365.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.765e-05/0.1256, allocations: 44 kB / 365.7 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.843e-05/0.1256, allocations: 31.98 kB / 365.7 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.1266, allocations: 0.5578 MB / 366.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1658/0.2925, allocations: 5.509 MB / 371.7 MB, free: 21.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006423/0.2931, allocations: 231.3 kB / 372 MB, free: 21.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.2935, allocations: 168.1 kB / 372.1 MB, free: 21.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001572/0.2936, allocations: 84.36 kB / 372.2 MB, free: 21.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.2937, allocations: 36.34 kB / 372.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.184e-06/0.2937, allocations: 0.5625 kB / 372.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003837/0.2975, allocations: 1.715 MB / 374 MB, free: 20.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.2975, allocations: 81.95 kB / 374.1 MB, free: 20.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007416/0.2983, allocations: 0.6376 MB / 374.7 MB, free: 20.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.2983, allocations: 32.73 kB / 374.7 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002648/0.2986, allocations: 0.5998 MB / 375.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.057e-05/0.2987, allocations: 144 kB / 375.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.2988, allocations: 137.9 kB / 375.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.299, allocations: 391.7 kB / 376 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.2993, allocations: 151.7 kB / 376.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004149/0.2997, allocations: 0.4924 MB / 376.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007874/0.3005, allocations: 0.6886 MB / 377.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3005, allocations: 2.781 kB / 377.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001079/0.3016, allocations: 0.7218 MB / 378 MB, free: 18.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3016, allocations: 11.75 kB / 378 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.3016, allocations: 11 kB / 378.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.151e-05/0.3017, allocations: 20.44 kB / 378.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/0.3023, allocations: 199.3 kB / 378.3 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-05/0.3023, allocations: 28.31 kB / 378.3 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/0.3027, allocations: 32.39 kB / 378.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.937e-05/0.3028, allocations: 36.91 kB / 378.4 MB, free: 17.97 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.0002702/0.3031, allocations: 233.8 kB / 378.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3032, allocations: 75.06 kB / 378.7 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.3033, allocations: 73.58 kB / 378.7 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.3033, allocations: 5.672 kB / 378.7 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.3034, allocations: 0.875 kB / 378.7 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3034, allocations: 7.562 kB / 378.8 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/0.3055, allocations: 1.328 MB / 380.1 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3055, allocations: 1.281 kB / 380.1 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/0.306, allocations: 107.7 kB / 380.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.306, allocations: 4.656 kB / 380.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.3061, allocations: 8.984 kB / 380.2 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.3061, allocations: 5.875 kB / 380.2 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3061, allocations: 2.656 kB / 380.2 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.3071, allocations: 0.7022 MB / 380.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.364e-05/0.3072, allocations: 142.1 kB / 381 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.592e-05/0.3073, allocations: 8.266 kB / 381.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.3076, allocations: 25.72 kB / 381.1 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.534e-05/0.3077, allocations: 30.22 kB / 381.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.3077, allocations: 15.83 kB / 381.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004623/0.3082, allocations: 420 kB / 381.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3082, allocations: 0 / 381.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007312/0.3089, allocations: 141.2 kB / 381.7 MB, free: 16.12 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.001045/0.31, allocations: 1.249 MB / 382.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009719/0.3109, allocations: 458.2 kB / 383.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.311, allocations: 4 kB / 383.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.3113, allocations: 161.1 kB / 383.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006732/0.312, allocations: 77.44 kB / 383.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007748/0.3198, allocations: 6.348 MB / 390 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006039/0.3204, allocations: 1.004 MB / 391 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003734/0.3208, allocations: 96.27 kB / 391.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004058/0.3212, allocations: 389.5 kB / 391.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3212, allocations: 1.125 kB / 391.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03146/0.3527, allocations: 11.36 MB / 402.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.192/8.545, allocations: 11.81 kB / 402.8 MB, free: 2.152 MB / 302.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