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.002018/0.002018, allocations: 104.1 kB / 16.62 MB, free: 6.809 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.001852/0.001853, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.508/1.508, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001224, allocations: 50.77 kB / 300.2 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08777/0.08902, allocations: 49.46 MB / 349.7 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006139/0.09519, allocations: 5.353 MB / 355 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002502/0.09772, allocations: 1.418 MB / 356.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007199/0.09846, allocations: 27.81 kB / 356.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006398/0.09911, allocations: 162.6 kB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007572/0.09991, allocations: 150.7 kB / 356.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007939/0.1007, allocations: 347.6 kB / 357.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.1018, allocations: 1.119 MB / 358.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006061/0.1024, allocations: 480.2 kB / 358.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004459/0.1028, allocations: 402.2 kB / 359.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003708/0.1032, allocations: 433.6 kB / 359.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1033, allocations: 84 kB / 359.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.1035, allocations: 96 kB / 359.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.1037, allocations: 215 kB / 359.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000353/0.104, allocations: 0.4932 MB / 360.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009219/0.105, allocations: 1.121 MB / 361.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.105, allocations: 0 / 361.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.105, allocations: 0 / 361.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.105, allocations: 4 kB / 361.5 MB, free: 8.641 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.00182/0.1068, allocations: 1.313 MB / 362.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.1069, allocations: 12.03 kB / 362.9 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001853/0.1071, allocations: 156.2 kB / 363 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.1073, allocations: 122.5 kB / 363.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007991/0.1081, allocations: 0.6184 MB / 363.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.494e-05/0.1081, allocations: 77.94 kB / 363.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.1083, allocations: 100 kB / 363.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.1099, allocations: 1.023 MB / 365 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.137e-05/0.11, allocations: 7.938 kB / 365 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.817e-05/0.1101, allocations: 44 kB / 365 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/0.1101, allocations: 31.98 kB / 365 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.1111, allocations: 0.5578 MB / 365.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1932/0.3043, allocations: 5.508 MB / 371.1 MB, free: 21.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006805/0.305, allocations: 232.3 kB / 371.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/0.3054, allocations: 158.4 kB / 371.5 MB, free: 21.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002461/0.3057, allocations: 86.38 kB / 371.6 MB, free: 21.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.3057, allocations: 40.36 kB / 371.6 MB, free: 21.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.216e-06/0.3057, allocations: 0 / 371.6 MB, free: 21.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.006493/0.3122, allocations: 1.711 MB / 373.3 MB, free: 20.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.3123, allocations: 83.67 kB / 373.4 MB, free: 20.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.3139, allocations: 0.6372 MB / 374 MB, free: 20.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.3139, allocations: 31.7 kB / 374.1 MB, free: 20.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000486/0.3144, allocations: 0.6023 MB / 374.7 MB, free: 20.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.3146, allocations: 142.5 kB / 374.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.3149, allocations: 137.9 kB / 374.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.315, allocations: 384.5 kB / 375.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.3156, allocations: 155.4 kB / 375.5 MB, free: 19.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007954/0.3164, allocations: 0.4899 MB / 376 MB, free: 19.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.3178, allocations: 0.7007 MB / 376.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/0.3178, allocations: 2.75 kB / 376.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002014/0.3198, allocations: 0.7153 MB / 377.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-05/0.3199, allocations: 15.7 kB / 377.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.54e-05/0.3199, allocations: 15.22 kB / 377.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.103e-05/0.32, allocations: 17 kB / 377.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.3211, allocations: 198.9 kB / 377.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.307e-05/0.3211, allocations: 23.72 kB / 377.6 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007413/0.3219, allocations: 33.89 kB / 377.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.322, allocations: 36.17 kB / 377.7 MB, free: 18.15 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.0005832/0.3226, allocations: 230.5 kB / 377.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002445/0.3229, allocations: 82.03 kB / 378 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002008/0.3231, allocations: 74.83 kB / 378.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.3231, allocations: 4.219 kB / 378.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.3231, allocations: 0 / 378.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3231, allocations: 3.891 kB / 378.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003306/0.3265, allocations: 1.33 MB / 379.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.3265, allocations: 2.281 kB / 379.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008015/0.3273, allocations: 101.6 kB / 379.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.918e-06/0.3273, allocations: 3.219 kB / 379.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.3274, allocations: 9.547 kB / 379.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.3274, allocations: 4.078 kB / 379.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3274, allocations: 2.188 kB / 379.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009738/0.3284, allocations: 0.7084 MB / 380.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.3285, allocations: 141.6 kB / 380.4 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.177e-05/0.3286, allocations: 15.86 kB / 380.4 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.3289, allocations: 19.2 kB / 380.4 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.329, allocations: 27.11 kB / 380.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.329, allocations: 15.09 kB / 380.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004898/0.3295, allocations: 423.6 kB / 380.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3295, allocations: 0 / 380.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001074/0.3306, allocations: 145.1 kB / 381 MB, free: 16.3 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.001446/0.332, allocations: 1.252 MB / 382.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.3332, allocations: 456.2 kB / 382.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3332, allocations: 1.25 kB / 382.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003714/0.3336, allocations: 157.8 kB / 382.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008933/0.3345, allocations: 75.91 kB / 383 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009509/0.3441, allocations: 6.772 MB / 389.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007902/0.3449, allocations: 0.9995 MB / 390.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004694/0.3454, allocations: 95.66 kB / 390.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005424/0.3459, allocations: 389.5 kB / 391.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of SimCode: time 2.074e-06/0.346, allocations: 0 / 391.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.3737, allocations: 11.18 MB / 402.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.374, allocations: 210 kB / 402.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.551, allocations: 3.938 kB / 402.6 MB, free: 1.926 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.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