Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 115.9 kB / 20.43 MB, free: 1.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 190.9 kB / 23.72 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 59.92 kB / 370.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2445, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004347/0.2489, allocations: 2.911 MB / 425.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.2503, allocations: 0.6816 MB / 426.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.2504, allocations: 11.94 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.2506, allocations: 59.38 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.2508, allocations: 87.27 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.2511, allocations: 103.7 kB / 426.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004275/0.2515, allocations: 386.7 kB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.2518, allocations: 120.8 kB / 427 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.252, allocations: 151.5 kB / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.2522, allocations: 163.3 kB / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-05/0.2523, allocations: 32 kB / 427.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.165e-05/0.2523, allocations: 32 kB / 427.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-05/0.2524, allocations: 75.77 kB / 427.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.2526, allocations: 167.2 kB / 427.6 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004266/0.253, allocations: 390.7 kB / 428 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.253, allocations: 0 / 428 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.253, allocations: 0 / 428 MB, free: 9.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.253, allocations: 4 kB / 428 MB, free: 9.246 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.0009341/0.2539, allocations: 0.552 MB / 428.5 MB, free: 8.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.254, allocations: 12.02 kB / 428.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.055e-05/0.254, allocations: 66.73 kB / 428.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.954e-05/0.2541, allocations: 48.69 kB / 428.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.2545, allocations: 194 kB / 428.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.2545, allocations: 29.02 kB / 428.9 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.683e-05/0.2546, allocations: 36.33 kB / 428.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.2551, allocations: 286.2 kB / 429.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2551, allocations: 0 / 429.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.2552, allocations: 12 kB / 429.2 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.2552, allocations: 8 kB / 429.2 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004854/0.2557, allocations: 218.5 kB / 429.4 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.2573, allocations: 0.9721 MB / 430.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.2577, allocations: 150.5 kB / 430.5 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.2579, allocations: 128.7 kB / 430.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.258, allocations: 4 kB / 430.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.258, allocations: 30.56 kB / 430.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.503e-06/0.258, allocations: 4 kB / 430.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005892/0.2586, allocations: 228.1 kB / 430.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.2586, allocations: 51.41 kB / 431 MB, free: 6.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.2589, allocations: 219.1 kB / 431.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.2589, allocations: 37.64 kB / 431.2 MB, free: 5.801 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.259, allocations: 196.3 kB / 431.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.939e-05/0.2591, allocations: 75.38 kB / 431.5 MB, free: 5.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.563e-05/0.2592, allocations: 57.94 kB / 431.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2593, allocations: 326.8 kB / 431.9 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.2595, allocations: 68.52 kB / 431.9 MB, free: 5.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.2597, allocations: 147.3 kB / 432.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003922/0.2601, allocations: 217.3 kB / 432.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2601, allocations: 0 / 432.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000499/0.2606, allocations: 277 kB / 432.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.2606, allocations: 8 kB / 432.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.2606, allocations: 4 kB / 432.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.2607, allocations: 4 kB / 432.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003001/0.261, allocations: 76.14 kB / 432.7 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.261, allocations: 7.938 kB / 432.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.2611, allocations: 35.77 kB / 432.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.2612, allocations: 12 kB / 432.7 MB, free: 4.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001364/0.2613, allocations: 137.8 kB / 432.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.693e-05/0.2613, allocations: 27.78 kB / 432.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000435/0.2618, allocations: 200.8 kB / 433.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.2618, allocations: 4 kB / 433.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2618, allocations: 0 / 433.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.2618, allocations: 3.984 kB / 433.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008681/0.2627, allocations: 0.5731 MB / 433.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2627, allocations: 3.938 kB / 433.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.263, allocations: 56.03 kB / 433.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.263, allocations: 48 / 433.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.263, allocations: 15.98 kB / 433.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.263, allocations: 0 / 433.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.263, allocations: 0 / 433.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006439/0.2636, allocations: 386.8 kB / 434.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.126e-05/0.2637, allocations: 23.8 kB / 434.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.2637, allocations: 4.062 kB / 434.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.2639, allocations: 19.98 kB / 434.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.2639, allocations: 11.97 kB / 434.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.264, allocations: 8 kB / 434.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.2641, allocations: 168.5 kB / 434.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2641, allocations: 0 / 434.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.2644, allocations: 79.78 kB / 434.4 MB, free: 2.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.000915/0.2654, allocations: 0.9004 MB / 435.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004171/0.2658, allocations: 175.7 kB / 435.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2658, allocations: 0.5 kB / 435.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.266, allocations: 82.47 kB / 435.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.2663, allocations: 28.61 kB / 435.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.27, allocations: 2.833 MB / 438.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.2705, allocations: 0.7675 MB / 439.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.169e-05/0.2706, allocations: 21.94 kB / 439.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2707, allocations: 91.41 kB / 439.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2707, allocations: 4 kB / 439.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03327/0.304, allocations: 4.928 MB / 444.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.37, allocations: 3.938 kB / 444.2 MB, free: 8.547 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_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_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sineCurrent.phi in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv. Warning: Get data of variable sineCurrent.phi from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.134311867001088]