Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001156/0.001156, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001285/0.001285, allocations: 156.9 kB / 23.94 MB, free: 0.6133 MB / 18.57 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 0.8702/0.8702, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.148e-05, allocations: 2.281 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.006567/0.006589, allocations: 8.473 MB / 333 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003368/0.009957, allocations: 2.96 MB / 336 MB, free: 4.375 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004902/0.01045, allocations: 27.88 kB / 336 MB, free: 4.348 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009459/0.01139, allocations: 0.5665 MB / 336.6 MB, free: 3.777 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008275/0.01222, allocations: 0.6161 MB / 337.2 MB, free: 3.156 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004106/0.01263, allocations: 327.3 kB / 337.5 MB, free: 2.836 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001297/0.01393, allocations: 1.848 MB / 339.3 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005049/0.01443, allocations: 429.2 kB / 339.8 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009953/0.01543, allocations: 1.033 MB / 340.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.01595, allocations: 0.5336 MB / 341.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.01608, allocations: 164 kB / 341.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.0163, allocations: 199.9 kB / 341.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.01648, allocations: 338.7 kB / 342 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.01688, allocations: 0.5612 MB / 342.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001324/0.0182, allocations: 2.005 MB / 344.6 MB, free: 11.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.01821, allocations: 0 / 344.6 MB, free: 11.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01821, allocations: 0 / 344.6 MB, free: 11.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.029e-05/0.01824, allocations: 0 / 344.6 MB, free: 11.7 MB / 314.7 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.002007/0.02024, allocations: 1.747 MB / 346.3 MB, free: 9.902 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.02028, allocations: 15.98 kB / 346.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.02042, allocations: 168.9 kB / 346.5 MB, free: 9.711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003894/0.02081, allocations: 203.9 kB / 346.7 MB, free: 9.512 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009491/0.02175, allocations: 0.7672 MB / 347.5 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.02186, allocations: 167.8 kB / 347.6 MB, free: 8.527 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.02197, allocations: 112.4 kB / 347.8 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.02327, allocations: 1.573 MB / 349.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.0233, allocations: 3.984 kB / 349.3 MB, free: 6.645 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/0.02336, allocations: 48 kB / 349.4 MB, free: 6.598 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.02338, allocations: 28 kB / 349.4 MB, free: 6.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.02438, allocations: 0.7535 MB / 350.2 MB, free: 5.82 MB / 314.7 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.003478/0.02786, allocations: 3.37 MB / 353.5 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009026/0.02876, allocations: 0.5398 MB / 354.1 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/0.02906, allocations: 242.7 kB / 354.3 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.0291, allocations: 16.48 kB / 354.3 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.02948, allocations: 315.9 kB / 354.6 MB, free: 1.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 1.933e-06/0.02949, allocations: 0 / 354.6 MB, free: 1.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.002655/0.03214, allocations: 1.872 MB / 356.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.0323, allocations: 483.2 kB / 357 MB, free: 14.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000949/0.03325, allocations: 1.125 MB / 358.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.345e-05/0.03329, allocations: 49.69 kB / 358.1 MB, free: 13.47 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003272/0.03362, allocations: 0.6483 MB / 358.8 MB, free: 12.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.03375, allocations: 238 kB / 359 MB, free: 12.58 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.03392, allocations: 198.8 kB / 359.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.091e-05/0.03401, allocations: 341.9 kB / 359.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.03437, allocations: 301.9 kB / 359.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006576/0.03503, allocations: 1.169 MB / 361 MB, free: 10.24 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008282/0.03585, allocations: 0.9412 MB / 362 MB, free: 9.129 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.03586, allocations: 4 kB / 362 MB, free: 9.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001237/0.0371, allocations: 1.192 MB / 363.2 MB, free: 7.895 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.161e-05/0.03714, allocations: 75.89 kB / 363.2 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.03715, allocations: 16 kB / 363.2 MB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003615/0.03751, allocations: 157.6 kB / 363.4 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.03787, allocations: 207.6 kB / 363.6 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/0.04055, allocations: 3.647 MB / 367.3 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.04099, allocations: 64.03 kB / 367.3 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.04103, allocations: 56.09 kB / 367.4 MB, free: 3.449 MB / 330.7 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.0002911/0.04132, allocations: 297.5 kB / 367.7 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.505e-05/0.04142, allocations: 131.2 kB / 367.8 MB, free: 3.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000869/0.04228, allocations: 0.7022 MB / 368.5 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.04229, allocations: 8 kB / 368.5 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.04229, allocations: 0 / 368.5 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007935/0.04309, allocations: 0.9473 MB / 369.4 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.04481, allocations: 1.623 MB / 371.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.04481, allocations: 0 / 371.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.04506, allocations: 112 kB / 371.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/0.04529, allocations: 124.9 kB / 371.3 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.04532, allocations: 15.98 kB / 371.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002001/0.04732, allocations: 3.35 MB / 374.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.04732, allocations: 4.25 kB / 374.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.04849, allocations: 1.049 MB / 375.7 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.04873, allocations: 187.2 kB / 375.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.04881, allocations: 16 kB / 375.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.04912, allocations: 43.97 kB / 376 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.04922, allocations: 56.39 kB / 376 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.04924, allocations: 23.98 kB / 376 MB, free: 10.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006594/0.0499, allocations: 0.7484 MB / 376.8 MB, free: 9.535 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0499, allocations: 3.938 kB / 376.8 MB, free: 9.531 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006185/0.05052, allocations: 307.9 kB / 377.1 MB, free: 9.23 MB / 346.7 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.001373/0.05189, allocations: 1.623 MB / 378.7 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.05309, allocations: 1.119 MB / 379.8 MB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.05309, allocations: 4 kB / 379.8 MB, free: 6.367 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005034/0.05359, allocations: 0.5316 MB / 380.4 MB, free: 5.809 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009021/0.05449, allocations: 323.9 kB / 380.7 MB, free: 5.496 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009963/0.06446, allocations: 9.889 MB / 390.6 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.06478, allocations: 0.4896 MB / 391.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003568/0.06514, allocations: 149.8 kB / 391.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003774/0.06552, allocations: 476.3 kB / 391.7 MB, free: 9.863 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.06552, allocations: 0 / 391.7 MB, free: 9.863 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04043/0.1059, allocations: 31.69 MB / 423.4 MB, free: 10.57 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.092/9.198, allocations: 0 / 423.4 MB, free: 10.57 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv failed! " [Timeout remaining time 658] "" Variables in the reference:time,armature.T,core.T,dcpm.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,armature.T,core.T,dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi [Calling sys.exit(0), Time elapsed: 17.503404363058507]