Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",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.001105/0.001105, allocations: 107.5 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.001112/0.001112, 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.344/1.344, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009649/0.0009651, allocations: 42.11 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08172/0.08271, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.004814/0.08755, allocations: 3.691 MB / 353.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.08975, allocations: 1.433 MB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.08995, allocations: 8 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001577/0.09155, allocations: 0.7558 MB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009844/0.09254, allocations: 0.5361 MB / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007313/0.09329, allocations: 429.8 kB / 357 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.09368, allocations: 462 kB / 357.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005326/0.09422, allocations: 398.1 kB / 357.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.09447, allocations: 195.3 kB / 358 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.09474, allocations: 263 kB / 358.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.046e-05/0.0948, allocations: 40 kB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003391/0.09515, allocations: 211.8 kB / 358.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.364e-05/0.09523, allocations: 111.5 kB / 358.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.09542, allocations: 222.9 kB / 358.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006276/0.09606, allocations: 0.6736 MB / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09607, allocations: 0 / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.09608, allocations: 0 / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.09609, allocations: 4 kB / 359.5 MB, free: 10.88 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001911/0.09801, allocations: 0.9015 MB / 360.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.09805, allocations: 8.031 kB / 360.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.09819, allocations: 96 kB / 360.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00346/0.1017, allocations: 0.492 MB / 361 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/0.102, allocations: 303.6 kB / 361.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.1021, allocations: 41.69 kB / 361.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.191e-05/0.1022, allocations: 64.27 kB / 361.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008846/0.1031, allocations: 0.5179 MB / 362 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.1031, allocations: 0 / 362 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.939e-05/0.1031, allocations: 20 kB / 362 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.1032, allocations: 16 kB / 362 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009892/0.1042, allocations: 0.5634 MB / 362.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.1068, allocations: 1.873 MB / 364.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.1087, allocations: 2.199 MB / 366.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003323/0.1091, allocations: 218 kB / 366.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.696e-05/0.1092, allocations: 93.52 kB / 366.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.1092, allocations: 35 kB / 367 MB, free: 2.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 1.954e-06/0.1092, allocations: 0 / 367 MB, free: 2.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.001825/0.111, allocations: 0.7933 MB / 367.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.1111, allocations: 59.84 kB / 367.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.1113, allocations: 182.3 kB / 368 MB, free: 1.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.847e-05/0.1113, allocations: 37.7 kB / 368 MB, free: 1.695 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1115, allocations: 224.4 kB / 368.2 MB, free: 1.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.1116, allocations: 161.6 kB / 368.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.1117, allocations: 86.25 kB / 368.5 MB, free: 1.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1118, allocations: 334.8 kB / 368.8 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.1121, allocations: 149 kB / 369 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.1125, allocations: 236.8 kB / 369.2 MB, free: 500 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.1131, allocations: 391.5 kB / 369.6 MB, free: 84 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.1132, allocations: 4 kB / 369.6 MB, free: 80 kB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.1397/0.2529, allocations: 0.5276 MB / 370.1 MB, free: 25.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.2529, allocations: 6.062 kB / 370.1 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.2529, allocations: 2.5 kB / 370.1 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004085/0.2534, allocations: 94.11 kB / 370.2 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003643/0.2537, allocations: 87.89 kB / 370.3 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.2554, allocations: 2.047 MB / 372.3 MB, free: 24.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.2557, allocations: 41.73 kB / 372.4 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.2557, allocations: 18.58 kB / 372.4 MB, free: 24.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001778/0.2559, allocations: 174.8 kB / 372.6 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.101e-05/0.2559, allocations: 23.5 kB / 372.6 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.257, allocations: 0.5476 MB / 373.1 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.2571, allocations: 9.062 kB / 373.1 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2571, allocations: 1.5 kB / 373.2 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.2571, allocations: 4.516 kB / 373.2 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.2586, allocations: 1.135 MB / 374.3 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2586, allocations: 192 / 374.3 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003174/0.259, allocations: 76.19 kB / 374.4 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002706/0.2592, allocations: 100.3 kB / 374.5 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.2593, allocations: 8.438 kB / 374.5 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.2607, allocations: 2.035 MB / 376.5 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2608, allocations: 0.6094 kB / 376.5 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.262, allocations: 0.7933 MB / 377.3 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.262, allocations: 110.6 kB / 377.4 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.2621, allocations: 18.45 kB / 377.4 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.2623, allocations: 15.39 kB / 377.4 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.425e-05/0.2624, allocations: 37.17 kB / 377.5 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.2624, allocations: 10.89 kB / 377.5 MB, free: 20.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.958e-05/0.2625, allocations: 137.4 kB / 377.6 MB, free: 20.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2625, allocations: 0 / 377.6 MB, free: 20.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00055/0.2631, allocations: 147.6 kB / 377.8 MB, free: 20.63 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001451/0.2645, allocations: 1.386 MB / 379.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.2656, allocations: 0.5773 MB / 379.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2657, allocations: 1.375 kB / 379.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005185/0.2662, allocations: 382 kB / 380.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.2666, allocations: 34.91 kB / 380.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004114/0.2707, allocations: 3.378 MB / 383.5 MB, free: 16.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.271, allocations: 0.8143 MB / 384.3 MB, free: 16.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002053/0.2712, allocations: 49.12 kB / 384.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.2714, allocations: 135.3 kB / 384.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2714, allocations: 0 / 384.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.301, allocations: 7.47 MB / 392 MB, free: 14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.999/9.3, allocations: 10.86 kB / 392 MB, free: 14 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches