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.0008188/0.0008188, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008205/0.0008205, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8898/0.8898, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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 2.024e-06/2.024e-06, allocations: 0 / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.343e-05/2.546e-05, allocations: 5.516 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007639/0.007665, allocations: 8.441 MB / 326.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.0116, allocations: 2.932 MB / 329.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005982/0.0122, allocations: 27.88 kB / 329.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.01324, allocations: 0.5587 MB / 330.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009752/0.01421, allocations: 0.6277 MB / 331 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.01465, allocations: 319.4 kB / 331.4 MB, free: 9.367 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.016, allocations: 1.836 MB / 333.2 MB, free: 7.523 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005069/0.01651, allocations: 421.3 kB / 333.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008606/0.01737, allocations: 1.029 MB / 334.6 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005394/0.01791, allocations: 0.5413 MB / 335.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.01804, allocations: 160 kB / 335.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.01827, allocations: 195.9 kB / 335.5 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.01844, allocations: 338.7 kB / 335.9 MB, free: 4.836 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003966/0.01884, allocations: 0.5573 MB / 336.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001464/0.0203, allocations: 2.005 MB / 338.4 MB, free: 2.266 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.0203, allocations: 4 kB / 338.4 MB, free: 2.262 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.02031, allocations: 4 kB / 338.4 MB, free: 2.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.007e-05/0.02034, allocations: 0 / 338.4 MB, free: 2.258 MB / 298.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.002073/0.02241, allocations: 1.747 MB / 340.2 MB, free: 468 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.02245, allocations: 8.922 kB / 340.2 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.02257, allocations: 165 kB / 340.3 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003287/0.0229, allocations: 207.9 kB / 340.5 MB, free: 76 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000949/0.02385, allocations: 0.7711 MB / 341.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.02396, allocations: 167.8 kB / 341.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.02406, allocations: 108.4 kB / 341.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.02549, allocations: 1.581 MB / 343.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/0.02552, allocations: 3.953 kB / 343.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.055e-05/0.02558, allocations: 52 kB / 343.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.0256, allocations: 28 kB / 343.2 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000996/0.02659, allocations: 0.7534 MB / 344 MB, free: 12.37 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.003716/0.03031, allocations: 3.363 MB / 347.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009012/0.03121, allocations: 0.5503 MB / 347.9 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/0.03151, allocations: 238.7 kB / 348.1 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.03154, allocations: 8.5 kB / 348.2 MB, free: 8.031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003842/0.03193, allocations: 328.2 kB / 348.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.034e-06/0.03193, allocations: 0 / 348.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.002636/0.03457, allocations: 1.865 MB / 350.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.03473, allocations: 487.2 kB / 350.8 MB, free: 5.207 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009341/0.03566, allocations: 1.117 MB / 351.9 MB, free: 4.078 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.0357, allocations: 45.7 kB / 352 MB, free: 4.027 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004389/0.03614, allocations: 0.6521 MB / 352.6 MB, free: 3.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.03626, allocations: 242 kB / 352.9 MB, free: 3.129 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.03643, allocations: 198.8 kB / 353.1 MB, free: 2.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.601e-05/0.03652, allocations: 341.9 kB / 353.4 MB, free: 2.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.03685, allocations: 309.8 kB / 353.7 MB, free: 2.273 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006303/0.03748, allocations: 1.165 MB / 354.9 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008284/0.03831, allocations: 0.9412 MB / 355.8 MB, free: 15.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.03832, allocations: 4 kB / 355.8 MB, free: 15.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001216/0.03953, allocations: 1.192 MB / 357 MB, free: 14.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.034e-05/0.03957, allocations: 71.33 kB / 357.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.03958, allocations: 12 kB / 357.1 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003426/0.03993, allocations: 169.7 kB / 357.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/0.04028, allocations: 203.7 kB / 357.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/0.04294, allocations: 3.648 MB / 361.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.04336, allocations: 68.06 kB / 361.2 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.04341, allocations: 48 kB / 361.2 MB, free: 9.996 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.0002754/0.04368, allocations: 297.5 kB / 361.5 MB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.382e-05/0.04377, allocations: 127.2 kB / 361.6 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009427/0.04472, allocations: 0.7061 MB / 362.3 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.04472, allocations: 4 kB / 362.3 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.04472, allocations: 0 / 362.3 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008166/0.04554, allocations: 0.9512 MB / 363.3 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001681/0.04722, allocations: 1.612 MB / 364.9 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.04722, allocations: 4 kB / 364.9 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.04748, allocations: 107.8 kB / 365 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002341/0.04771, allocations: 125.8 kB / 365.1 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.04773, allocations: 19.94 kB / 365.1 MB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002262/0.05, allocations: 3.361 MB / 368.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.05, allocations: 0 / 368.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.05109, allocations: 1.05 MB / 369.6 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000245/0.05133, allocations: 187.1 kB / 369.7 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.916e-05/0.05141, allocations: 19.98 kB / 369.8 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.05171, allocations: 39.97 kB / 369.8 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.215e-05/0.0518, allocations: 60.33 kB / 369.9 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.05182, allocations: 16 kB / 369.9 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006346/0.05245, allocations: 0.7484 MB / 370.6 MB, free: 88 kB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.05245, allocations: 0 / 370.6 MB, free: 88 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006111/0.05306, allocations: 308 kB / 370.9 MB, free: 15.79 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.001349/0.05441, allocations: 1.631 MB / 372.6 MB, free: 14.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.05566, allocations: 1.115 MB / 373.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.05566, allocations: 4.312 kB / 373.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000488/0.05615, allocations: 0.5312 MB / 374.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000762/0.05691, allocations: 332.7 kB / 374.5 MB, free: 12.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009415/0.06632, allocations: 9.882 MB / 384.4 MB, free: 1.547 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.06663, allocations: 0.4896 MB / 384.9 MB, free: 1.023 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003143/0.06694, allocations: 145.8 kB / 385 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000363/0.06731, allocations: 476.3 kB / 385.5 MB, free: 424 kB / 346.7 MB Notification: Performance of SimCode: time 7.21e-07/0.06731, allocations: 0 / 385.5 MB, free: 424 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04416/0.1115, allocations: 31.66 MB / 417.2 MB, free: 1.191 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.188/9.299, allocations: 0 / 417.2 MB, free: 1.191 MB / 378.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/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] "" 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.5931686013937]