Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 211.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002159/0.002159, allocations: 43.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2332, allocations: 53.38 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0116/0.2448, allocations: 8.465 MB / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006245/0.2511, allocations: 2.948 MB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009787/0.2521, allocations: 31.88 kB / 442.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.2536, allocations: 0.5589 MB / 443.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001313/0.2549, allocations: 0.5854 MB / 443.7 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007043/0.2556, allocations: 323.4 kB / 444 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00193/0.2575, allocations: 1.763 MB / 445.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007063/0.2582, allocations: 453.3 kB / 446.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009042/0.2591, allocations: 0.7045 MB / 446.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008652/0.26, allocations: 0.7389 MB / 447.7 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002157/0.2602, allocations: 160 kB / 447.8 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003674/0.2606, allocations: 196 kB / 448 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002846/0.2609, allocations: 334.8 kB / 448.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006816/0.2616, allocations: 0.6611 MB / 449 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.2638, allocations: 2.008 MB / 451 MB, free: 2.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2638, allocations: 0 / 451 MB, free: 2.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2638, allocations: 0 / 451 MB, free: 2.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.419e-05/0.2638, allocations: 0 / 451 MB, free: 2.633 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.00329/0.2671, allocations: 1.759 MB / 452.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.2672, allocations: 16.03 kB / 452.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002112/0.2674, allocations: 164.9 kB / 452.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005657/0.268, allocations: 203.9 kB / 453.1 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.2695, allocations: 0.7699 MB / 453.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001988/0.2697, allocations: 169.7 kB / 454.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.2698, allocations: 112 kB / 454.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.2721, allocations: 1.569 MB / 455.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.2721, allocations: 3.953 kB / 455.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.661e-05/0.2722, allocations: 48 kB / 455.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.2722, allocations: 24 kB / 455.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.2738, allocations: 0.7651 MB / 456.6 MB, free: 12.73 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005806/0.2796, allocations: 3.36 MB / 460 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.2812, allocations: 0.5385 MB / 460.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000511/0.2817, allocations: 246.7 kB / 460.7 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.692e-05/0.2817, allocations: 9.062 kB / 460.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006934/0.2824, allocations: 323.8 kB / 461.1 MB, free: 8.078 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 4.849e-06/0.2824, allocations: 3.984 kB / 461.1 MB, free: 8.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004797/0.2872, allocations: 1.872 MB / 462.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002709/0.2875, allocations: 475.3 kB / 463.4 MB, free: 5.594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.2895, allocations: 1.129 MB / 464.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.856e-05/0.2896, allocations: 41.7 kB / 464.6 MB, free: 4.406 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007571/0.2904, allocations: 0.6599 MB / 465.2 MB, free: 3.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002843/0.2907, allocations: 242 kB / 465.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004039/0.2911, allocations: 194.9 kB / 465.7 MB, free: 3.305 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.2913, allocations: 345.9 kB / 466 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008551/0.2921, allocations: 301.9 kB / 466.3 MB, free: 2.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001705/0.2938, allocations: 1.177 MB / 467.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002026/0.2958, allocations: 0.9412 MB / 468.4 MB, free: 44 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.2959, allocations: 0 / 468.4 MB, free: 44 kB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003316/0.2992, allocations: 1.204 MB / 469.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.874e-05/0.2993, allocations: 63.41 kB / 469.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/0.2993, allocations: 12 kB / 469.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007498/0.3, allocations: 169.5 kB / 469.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.301, allocations: 207.8 kB / 470 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006365/0.3074, allocations: 3.645 MB / 473.7 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.3088, allocations: 64.08 kB / 473.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.3089, allocations: 48 kB / 473.8 MB, free: 10.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000678/0.3096, allocations: 301.5 kB / 474.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003072/0.3099, allocations: 131.2 kB / 474.2 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002181/0.3121, allocations: 0.706 MB / 474.9 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.3121, allocations: 4 kB / 474.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3121, allocations: 0 / 474.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002121/0.3142, allocations: 0.955 MB / 475.9 MB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004423/0.3187, allocations: 1.604 MB / 477.5 MB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.3187, allocations: 12.16 kB / 477.5 MB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007108/0.3194, allocations: 107.8 kB / 477.6 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005782/0.32, allocations: 125.6 kB / 477.7 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-05/0.32, allocations: 16 kB / 477.8 MB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005223/0.3253, allocations: 3.349 MB / 481.1 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.3253, allocations: 4.031 kB / 481.1 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/0.3282, allocations: 1.053 MB / 482.2 MB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008309/0.329, allocations: 187.4 kB / 482.3 MB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003435/0.3293, allocations: 19.94 kB / 482.4 MB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.3304, allocations: 39.91 kB / 482.4 MB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3306, allocations: 60.39 kB / 482.5 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.796e-05/0.3306, allocations: 16 kB / 482.5 MB, free: 1.207 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001702/0.3323, allocations: 0.7484 MB / 483.2 MB, free: 464 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3323, allocations: 0 / 483.2 MB, free: 464 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.002036/0.3344, allocations: 304 kB / 483.5 MB, free: 160 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0035/0.3379, allocations: 1.652 MB / 485.2 MB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003086/0.341, allocations: 1.126 MB / 486.3 MB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.341, allocations: 0.9375 kB / 486.3 MB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.3423, allocations: 0.5351 MB / 486.8 MB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002334/0.3446, allocations: 323.1 kB / 487.1 MB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02239/0.367, allocations: 9.979 MB / 497.1 MB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00061/0.3676, allocations: 0.4896 MB / 497.6 MB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006079/0.3682, allocations: 149.8 kB / 497.8 MB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/0.3689, allocations: 475.3 kB / 498.2 MB, free: 0.6758 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3689, allocations: 3.938 kB / 498.2 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07881/0.4477, allocations: 31.96 MB / 0.5178 GB, free: 1.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.61, allocations: 11.81 kB / 0.5178 GB, free: 1.207 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv failed! " [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 26.017389941989677]