Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000807/0.000807, allocations: 84.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008164/0.0008164, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8866/0.8866, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.312e-05/2.471e-05, allocations: 2.844 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002955/0.00298, allocations: 2.716 MB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.004083, allocations: 0.6738 MB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.004224, allocations: 11.94 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.004403, allocations: 63.38 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.004543, allocations: 91.12 kB / 328.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.004797, allocations: 91.8 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003246/0.005122, allocations: 390 kB / 328.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.005373, allocations: 109.8 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004536/0.005827, allocations: 227.5 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.00598, allocations: 115.7 kB / 329 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.175e-05/0.006022, allocations: 28 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.599e-05/0.006058, allocations: 32 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.071e-05/0.006109, allocations: 75.73 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.714e-05/0.006196, allocations: 115.7 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.006571, allocations: 386.7 kB / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.006577, allocations: 0 / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.00658, allocations: 0 / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.006591, allocations: 4 kB / 329.6 MB, free: 10.75 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008359/0.007427, allocations: 0.5326 MB / 330.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.007473, allocations: 11.98 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.121e-05/0.007534, allocations: 70.72 kB / 330.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.198e-05/0.007596, allocations: 36.7 kB / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.007913, allocations: 209.2 kB / 330.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.007934, allocations: 28.97 kB / 330.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.007974, allocations: 32.38 kB / 330.5 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.008365, allocations: 326 kB / 330.9 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.008376, allocations: 192 / 330.9 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.008403, allocations: 16.12 kB / 330.9 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.008411, allocations: 8 kB / 330.9 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002688/0.00868, allocations: 202.5 kB / 331.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.009688, allocations: 0.8598 MB / 331.9 MB, free: 8.289 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.009929, allocations: 162.6 kB / 332.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.871e-05/0.01003, allocations: 68.83 kB / 332.2 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.01005, allocations: 8.25 kB / 332.2 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.01008, allocations: 34.5 kB / 332.2 MB, free: 8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.01008, allocations: 0 / 332.2 MB, free: 8 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003898/0.01047, allocations: 220.4 kB / 332.4 MB, free: 7.781 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.0105, allocations: 63.41 kB / 332.5 MB, free: 7.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.01068, allocations: 211 kB / 332.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.0107, allocations: 25.7 kB / 332.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.01081, allocations: 192.4 kB / 332.9 MB, free: 7.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.457e-05/0.01085, allocations: 71.41 kB / 333 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.85e-05/0.01091, allocations: 45.7 kB / 333 MB, free: 7.148 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.606e-05/0.011, allocations: 334.8 kB / 333.3 MB, free: 6.812 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.01111, allocations: 59.97 kB / 333.4 MB, free: 6.754 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.01131, allocations: 114 kB / 333.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/0.01153, allocations: 197.8 kB / 333.7 MB, free: 6.406 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.01153, allocations: 0 / 333.7 MB, free: 6.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002879/0.01182, allocations: 237.4 kB / 333.9 MB, free: 6.168 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.01184, allocations: 12 kB / 334 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.01185, allocations: 0 / 334 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.01186, allocations: 4 kB / 334 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.01205, allocations: 67.89 kB / 334 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.01206, allocations: 4 kB / 334 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.543e-05/0.01214, allocations: 23.84 kB / 334 MB, free: 6.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.01215, allocations: 15.92 kB / 334.1 MB, free: 6.043 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001001/0.01225, allocations: 145.7 kB / 334.2 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.01228, allocations: 19.84 kB / 334.2 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002699/0.01255, allocations: 195.2 kB / 334.4 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.01255, allocations: 4 kB / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.01256, allocations: 0 / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.01256, allocations: 0 / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/0.01279, allocations: 268.6 kB / 334.7 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.0128, allocations: 0 / 334.7 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.01294, allocations: 51.97 kB / 334.7 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.01295, allocations: 3.938 kB / 334.7 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.01296, allocations: 4 kB / 334.7 MB, free: 5.301 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.01296, allocations: 4 kB / 334.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01296, allocations: 0 / 334.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003613/0.01332, allocations: 354.1 kB / 335.1 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.553e-05/0.01335, allocations: 19.8 kB / 335.1 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.01337, allocations: 12.05 kB / 335.1 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-05/0.01345, allocations: 8 kB / 335.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.0135, allocations: 19.97 kB / 335.1 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.0135, allocations: 4 kB / 335.2 MB, free: 4.875 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001224/0.01363, allocations: 152.6 kB / 335.3 MB, free: 4.727 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01363, allocations: 0 / 335.3 MB, free: 4.727 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002314/0.01386, allocations: 75.78 kB / 335.4 MB, free: 4.652 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0006076/0.01447, allocations: 0.884 MB / 336.3 MB, free: 3.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.01472, allocations: 155.8 kB / 336.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.01472, allocations: 0 / 336.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.553e-05/0.01481, allocations: 71.89 kB / 336.5 MB, free: 3.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.01508, allocations: 42.12 kB / 336.5 MB, free: 3.484 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.01744, allocations: 2.58 MB / 339.1 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.01755, allocations: 159.1 kB / 339.3 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.716e-05/0.01761, allocations: 21.94 kB / 339.3 MB, free: 0.582 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.625e-05/0.01771, allocations: 88.47 kB / 339.4 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01771, allocations: 0 / 339.4 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.03702, allocations: 5.317 MB / 344.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.693/6.73, allocations: 10.97 kB / 344.7 MB, free: 11.29 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sineVoltage.phi in file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.654150703921914]