Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001246/0.001246, allocations: 124 kB / 17.79 MB, free: 5.266 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.001235/0.001235, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.429/1.429, allocations: 225.6 MB / 249.1 MB, free: 3.645 MB / 190.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.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_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_0_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.001538/0.001538, allocations: 51.92 kB / 365.7 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1038, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01153/0.1154, allocations: 9.628 MB / 427.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006548/0.1219, allocations: 3.127 MB / 430.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001582/0.1235, allocations: 27.88 kB / 430.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.1254, allocations: 0.6134 MB / 431.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002282/0.1277, allocations: 0.5815 MB / 431.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.1287, allocations: 323.5 kB / 432.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002847/0.1315, allocations: 1.771 MB / 433.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008662/0.1324, allocations: 441 kB / 434.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.1337, allocations: 0.6889 MB / 435 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.135, allocations: 0.7428 MB / 435.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002597/0.1352, allocations: 156 kB / 435.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004431/0.1357, allocations: 204 kB / 436.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002708/0.1359, allocations: 338.8 kB / 436.4 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008339/0.1368, allocations: 0.8048 MB / 437.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002573/0.1393, allocations: 1.984 MB / 439.2 MB, free: 7.121 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.1393, allocations: 4 kB / 439.2 MB, free: 7.117 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1393, allocations: 3.938 kB / 439.2 MB, free: 7.113 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.756e-05/0.1394, allocations: 0 / 439.2 MB, free: 7.113 MB / 366.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.003681/0.1431, allocations: 1.826 MB / 441 MB, free: 5.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1431, allocations: 12.03 kB / 441.1 MB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002071/0.1433, allocations: 164.9 kB / 441.2 MB, free: 5.031 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006013/0.1439, allocations: 207.9 kB / 441.4 MB, free: 4.828 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.1455, allocations: 0.8374 MB / 442.3 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.1457, allocations: 116.4 kB / 442.4 MB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.1459, allocations: 115.9 kB / 442.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.1479, allocations: 1.139 MB / 443.6 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.1479, allocations: 7.953 kB / 443.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.148, allocations: 52 kB / 443.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.148, allocations: 24 kB / 443.7 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.1496, allocations: 0.7573 MB / 444.5 MB, free: 1.641 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.2109/0.3606, allocations: 3.918 MB / 448.4 MB, free: 28.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.362, allocations: 0.5489 MB / 448.9 MB, free: 28.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.3625, allocations: 247.8 kB / 449.2 MB, free: 28.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.083e-05/0.3625, allocations: 15.42 kB / 449.2 MB, free: 28.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.3631, allocations: 298.2 kB / 449.5 MB, free: 28.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.826e-06/0.3631, allocations: 5.562 kB / 449.5 MB, free: 28.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004394/0.3675, allocations: 2.088 MB / 451.6 MB, free: 27.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.3676, allocations: 480.5 kB / 452 MB, free: 27.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.3691, allocations: 1.105 MB / 453.1 MB, free: 26.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.3692, allocations: 44.8 kB / 453.2 MB, free: 26.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000421/0.3696, allocations: 0.6504 MB / 453.8 MB, free: 26.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.3698, allocations: 248 kB / 454.1 MB, free: 26.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002571/0.37, allocations: 191.6 kB / 454.3 MB, free: 26.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.213e-05/0.3701, allocations: 351 kB / 454.6 MB, free: 25.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005338/0.3707, allocations: 245 kB / 454.8 MB, free: 25.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008273/0.3715, allocations: 0.709 MB / 455.6 MB, free: 25.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.3729, allocations: 0.9438 MB / 456.5 MB, free: 24.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.3729, allocations: 3.656 kB / 456.5 MB, free: 24.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002164/0.375, allocations: 1.139 MB / 457.6 MB, free: 24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.636e-05/0.3751, allocations: 68.19 kB / 457.7 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.3751, allocations: 15.75 kB / 457.7 MB, free: 23.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006228/0.3757, allocations: 168.7 kB / 457.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006995/0.3764, allocations: 202.5 kB / 458.1 MB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003729/0.3802, allocations: 3.891 MB / 462 MB, free: 20.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.3813, allocations: 66.38 kB / 462 MB, free: 20.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.785e-05/0.3814, allocations: 47.17 kB / 462.1 MB, free: 20.44 MB / 366.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.0005299/0.3819, allocations: 303.9 kB / 462.4 MB, free: 20.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.3822, allocations: 133.1 kB / 462.5 MB, free: 20.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.3837, allocations: 0.6953 MB / 463.2 MB, free: 19.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.3837, allocations: 6.844 kB / 463.2 MB, free: 19.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3837, allocations: 0 / 463.2 MB, free: 19.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001358/0.3851, allocations: 0.9511 MB / 464.2 MB, free: 19.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.3885, allocations: 1.791 MB / 466 MB, free: 18.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.3885, allocations: 7.531 kB / 466 MB, free: 18.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004925/0.389, allocations: 100.2 kB / 466.1 MB, free: 18.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004496/0.3895, allocations: 129.6 kB / 466.2 MB, free: 18.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.3895, allocations: 19.42 kB / 466.2 MB, free: 18.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002995/0.3925, allocations: 3.59 MB / 469.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3925, allocations: 2.625 kB / 469.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/0.3946, allocations: 1.054 MB / 470.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.3951, allocations: 264 kB / 471.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.3952, allocations: 15.91 kB / 471.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006554/0.3959, allocations: 35.88 kB / 471.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.3961, allocations: 64.19 kB / 471.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.3961, allocations: 19.25 kB / 471.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001252/0.3974, allocations: 0.74 MB / 472 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3974, allocations: 0 / 472 MB, free: 13.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001447/0.3988, allocations: 312.5 kB / 472.3 MB, free: 13.68 MB / 366.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.002207/0.401, allocations: 1.625 MB / 473.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.4033, allocations: 1.07 MB / 475 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4033, allocations: 1.375 kB / 475 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009338/0.4042, allocations: 0.5393 MB / 475.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.4059, allocations: 333.2 kB / 475.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/0.4207, allocations: 9.779 MB / 485.6 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.4212, allocations: 1.084 MB / 486.7 MB, free: 5.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006887/0.4219, allocations: 145.1 kB / 486.9 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004544/0.4224, allocations: 469.1 kB / 487.3 MB, free: 4.695 MB / 366.1 MB Notification: Performance of SimCode: time 1.753e-06/0.4224, allocations: 4 kB / 487.3 MB, free: 4.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07566/0.498, allocations: 29.32 MB / 0.5045 GB, free: 8.941 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/14.82, allocations: 8.062 kB / 0.5045 GB, free: 8.934 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.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.032494001090527]