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.002015/0.002015, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 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.002273/0.002273, allocations: 214 kB / 23.74 MB, free: 4.66 MB / 14.72 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 1.542/1.542, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001855/0.001855, allocations: 71.88 kB / 377.8 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2468, allocations: 53.41 MB / 431.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00435/0.2511, allocations: 2.941 MB / 434.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.2524, allocations: 0.7244 MB / 434.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.2526, allocations: 4 kB / 434.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.2528, allocations: 55.38 kB / 434.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.2529, allocations: 91.19 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.2532, allocations: 91.83 kB / 435.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000408/0.2536, allocations: 378.4 kB / 435.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002373/0.2539, allocations: 113.8 kB / 435.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.2541, allocations: 147.5 kB / 435.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000211/0.2543, allocations: 159.3 kB / 435.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.711e-05/0.2544, allocations: 32 kB / 435.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.2544, allocations: 32 kB / 435.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.75e-05/0.2545, allocations: 71.77 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.2547, allocations: 175.1 kB / 436.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004237/0.2551, allocations: 382.8 kB / 436.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2551, allocations: 0 / 436.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2551, allocations: 0 / 436.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2551, allocations: 0 / 436.6 MB, free: 1.277 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009138/0.256, allocations: 0.5404 MB / 437.1 MB, free: 0.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.2561, allocations: 8.031 kB / 437.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.773e-05/0.2561, allocations: 70.72 kB / 437.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.691e-05/0.2562, allocations: 40.7 kB / 437.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.2566, allocations: 202.7 kB / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.2566, allocations: 25.03 kB / 437.4 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.425e-05/0.2566, allocations: 28.38 kB / 437.5 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005135/0.2572, allocations: 278.2 kB / 437.7 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.2572, allocations: 4 kB / 437.7 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.2572, allocations: 16 kB / 437.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2572, allocations: 4 kB / 437.8 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000461/0.2577, allocations: 202.6 kB / 438 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.2591, allocations: 0.9368 MB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.2595, allocations: 162.6 kB / 439.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.2596, allocations: 71.17 kB / 439.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.2596, allocations: 0 / 439.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2597, allocations: 42.48 kB / 439.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.2597, allocations: 0 / 439.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005437/0.2602, allocations: 213.7 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.2603, allocations: 55.41 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.2605, allocations: 214.7 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.2605, allocations: 33.64 kB / 439.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.2606, allocations: 188.4 kB / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.781e-05/0.2607, allocations: 71.39 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.649e-05/0.2608, allocations: 45.7 kB / 440 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.2609, allocations: 330.8 kB / 440.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.2611, allocations: 63.97 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.2613, allocations: 125.9 kB / 440.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.2616, allocations: 181.9 kB / 440.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.2616, allocations: 3.938 kB / 440.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004602/0.2621, allocations: 253.3 kB / 440.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2621, allocations: 4 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.964e-06/0.2621, allocations: 4 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.2621, allocations: 0 / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.2624, allocations: 59.91 kB / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2624, allocations: 7.938 kB / 441 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.2625, allocations: 23.88 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.2626, allocations: 12 kB / 441 MB, free: 12.56 MB / 350.1 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.0001353/0.2627, allocations: 149.8 kB / 441.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.537e-05/0.2627, allocations: 19.86 kB / 441.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004051/0.2631, allocations: 194.1 kB / 441.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2631, allocations: 0 / 441.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2631, allocations: 4 kB / 441.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2631, allocations: 0 / 441.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003481/0.2635, allocations: 292.5 kB / 441.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2635, allocations: 0 / 441.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.2638, allocations: 55.91 kB / 441.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2638, allocations: 0 / 441.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.2638, allocations: 8 kB / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2638, allocations: 0 / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2638, allocations: 0 / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005716/0.2644, allocations: 351.8 kB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.799e-05/0.2644, allocations: 27.8 kB / 442.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.2644, allocations: 8.062 kB / 442.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.2646, allocations: 19.92 kB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.2646, allocations: 11.97 kB / 442.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.2647, allocations: 4 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.2648, allocations: 152.6 kB / 442.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2648, allocations: 0 / 442.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.2651, allocations: 71.78 kB / 442.4 MB, free: 11.14 MB / 350.1 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.0008491/0.266, allocations: 0.8906 MB / 443.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004042/0.2664, allocations: 151.9 kB / 443.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2664, allocations: 0 / 443.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.2665, allocations: 67.86 kB / 443.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.2668, allocations: 35.88 kB / 443.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.2703, allocations: 2.712 MB / 446.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.2707, allocations: 0.7632 MB / 447 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.919e-05/0.2708, allocations: 21.94 kB / 447 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.2709, allocations: 99.39 kB / 447.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2709, allocations: 0 / 447.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03263/0.3035, allocations: 4.797 MB / 451.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.09, allocations: 3.859 kB / 451.9 MB, free: 1.578 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/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: 14.040564609000285]