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.001753/0.001753, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.001956/0.001956, allocations: 186.9 kB / 20.68 MB, free: 2.402 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: 222.9 MB / 246.4 MB, free: 4.211 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.001503/0.001503, allocations: 51.92 kB / 357.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09944, allocations: 49.42 MB / 406.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01152/0.111, allocations: 9.595 MB / 416.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005995/0.117, allocations: 3.111 MB / 419.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001376/0.1185, allocations: 23.94 kB / 419.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001813/0.1203, allocations: 0.5899 MB / 420.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00182/0.1222, allocations: 0.5503 MB / 420.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008043/0.123, allocations: 319.4 kB / 421.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00221/0.1252, allocations: 1.771 MB / 422.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000932/0.1261, allocations: 0.6336 MB / 423.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00104/0.1272, allocations: 0.6616 MB / 424.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000967/0.1282, allocations: 0.7545 MB / 424.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002162/0.1284, allocations: 160 kB / 425.1 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003934/0.1288, allocations: 196 kB / 425.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003111/0.1291, allocations: 334.8 kB / 425.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000819/0.1299, allocations: 0.7971 MB / 426.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002298/0.1322, allocations: 1.992 MB / 428.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1323, allocations: 0 / 428.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1323, allocations: 0 / 428.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.1323, allocations: 0 / 428.4 MB, free: 1.812 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.1953/0.3276, allocations: 1.829 MB / 430.2 MB, free: 22.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3277, allocations: 7.438 kB / 430.2 MB, free: 22.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002582/0.328, allocations: 169.6 kB / 430.4 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007607/0.3287, allocations: 206.3 kB / 430.6 MB, free: 22.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.3301, allocations: 0.8417 MB / 431.5 MB, free: 21.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.3302, allocations: 113.8 kB / 431.6 MB, free: 21.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.3304, allocations: 108.7 kB / 431.7 MB, free: 21.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.332, allocations: 1.144 MB / 432.8 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.473e-05/0.3321, allocations: 6.359 kB / 432.8 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.363e-05/0.3322, allocations: 46.44 kB / 432.9 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.3322, allocations: 31.8 kB / 432.9 MB, free: 21.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.3336, allocations: 0.7571 MB / 433.7 MB, free: 21.49 MB / 350.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.005778/0.3394, allocations: 3.927 MB / 437.6 MB, free: 20.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.3409, allocations: 0.5817 MB / 438.2 MB, free: 20.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004908/0.3414, allocations: 268.7 kB / 438.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.889e-05/0.3415, allocations: 10.06 kB / 438.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006215/0.3421, allocations: 304.5 kB / 438.7 MB, free: 19.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.116e-06/0.3421, allocations: 1.938 kB / 438.7 MB, free: 19.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004561/0.3467, allocations: 2.104 MB / 440.8 MB, free: 19.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.3468, allocations: 477.5 kB / 441.3 MB, free: 18.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.3483, allocations: 1.11 MB / 442.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.3483, allocations: 36.83 kB / 442.5 MB, free: 18.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003763/0.3487, allocations: 0.657 MB / 443.1 MB, free: 18.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.3489, allocations: 244.1 kB / 443.3 MB, free: 18.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002483/0.3491, allocations: 197.6 kB / 443.5 MB, free: 18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.973e-05/0.3492, allocations: 345.1 kB / 443.9 MB, free: 17.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004907/0.3497, allocations: 246.1 kB / 444.1 MB, free: 17.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006881/0.3504, allocations: 0.7121 MB / 444.8 MB, free: 16.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.3516, allocations: 0.9427 MB / 445.8 MB, free: 16.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.3516, allocations: 4.312 kB / 445.8 MB, free: 16.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001992/0.3536, allocations: 1.144 MB / 446.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.552e-05/0.3536, allocations: 68.84 kB / 447 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.3537, allocations: 16.2 kB / 447 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006043/0.3543, allocations: 166.3 kB / 447.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006931/0.355, allocations: 206.4 kB / 447.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003425/0.3584, allocations: 3.885 MB / 451.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000991/0.3594, allocations: 64.41 kB / 451.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.3595, allocations: 49.83 kB / 451.4 MB, free: 12.05 MB / 350.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.0004394/0.36, allocations: 299.2 kB / 451.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.3601, allocations: 134.1 kB / 451.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001417/0.3615, allocations: 0.7044 MB / 452.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3616, allocations: 7.281 kB / 452.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3616, allocations: 3.5 kB / 452.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00126/0.3628, allocations: 0.9617 MB / 453.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002831/0.3657, allocations: 1.79 MB / 455.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3657, allocations: 6.344 kB / 455.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.3662, allocations: 109 kB / 455.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000448/0.3666, allocations: 122.4 kB / 455.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.791e-05/0.3667, allocations: 19.14 kB / 455.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/0.3694, allocations: 3.584 MB / 459.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3694, allocations: 1.094 kB / 459.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.3712, allocations: 1.064 MB / 460.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/0.3716, allocations: 262.5 kB / 460.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.3717, allocations: 19.86 kB / 460.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006003/0.3723, allocations: 33 kB / 460.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3725, allocations: 61.61 kB / 460.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.75e-05/0.3725, allocations: 21.62 kB / 460.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009312/0.3735, allocations: 0.7459 MB / 461.3 MB, free: 5.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3735, allocations: 1.219 kB / 461.3 MB, free: 5.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001134/0.3746, allocations: 305.4 kB / 461.6 MB, free: 5.195 MB / 350.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.001903/0.3765, allocations: 1.638 MB / 463.2 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.3783, allocations: 1.111 MB / 464.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3783, allocations: 0 / 464.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007677/0.3791, allocations: 0.5505 MB / 464.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.3804, allocations: 333.5 kB / 465.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.3949, allocations: 9.778 MB / 475 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008297/0.3957, allocations: 1.086 MB / 476.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006546/0.3964, allocations: 149.8 kB / 476.2 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006068/0.397, allocations: 475.2 kB / 476.7 MB, free: 8.332 MB / 366.1 MB Notification: Performance of SimCode: time 6.72e-07/0.397, allocations: 0 / 476.7 MB, free: 8.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.104/0.5011, allocations: 29.09 MB / 0.4939 GB, free: 11.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.49, allocations: 0 / 0.4939 GB, free: 11.62 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_2/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_2/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 25.66031344095245]