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.001305/0.001305, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.001401/0.001401, allocations: 212.9 kB / 23.74 MB, free: 4.688 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 8.043 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.001516/0.001516, allocations: 51.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2961, allocations: 53.36 MB / 431.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01194/0.3081, allocations: 9.693 MB / 440.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006446/0.3145, allocations: 3.15 MB / 444 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.3156, allocations: 35.81 kB / 444 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.3173, allocations: 0.6222 MB / 444.7 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001418/0.3187, allocations: 0.5815 MB / 445.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007/0.3194, allocations: 323.4 kB / 445.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002116/0.3215, allocations: 1.763 MB / 447.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000776/0.3223, allocations: 457.3 kB / 447.8 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.3233, allocations: 0.6967 MB / 448.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.3243, allocations: 0.7467 MB / 449.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002175/0.3246, allocations: 156 kB / 449.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003942/0.325, allocations: 196 kB / 449.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002985/0.3253, allocations: 338.8 kB / 449.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008408/0.3261, allocations: 0.8048 MB / 450.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002396/0.3285, allocations: 1.992 MB / 452.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3285, allocations: 0 / 452.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3285, allocations: 0 / 452.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.3285, allocations: 0 / 452.7 MB, free: 1.25 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.003358/0.3319, allocations: 1.759 MB / 454.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.3319, allocations: 8.031 kB / 454.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002064/0.3321, allocations: 161 kB / 454.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005817/0.3327, allocations: 211.8 kB / 454.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001518/0.3342, allocations: 0.764 MB / 455.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.3344, allocations: 171.8 kB / 455.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.3346, allocations: 107.9 kB / 455.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.3365, allocations: 1.15 MB / 457 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.3365, allocations: 0 / 457 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.312e-05/0.3366, allocations: 52 kB / 457.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/0.3366, allocations: 31.94 kB / 457.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.3382, allocations: 0.7574 MB / 457.8 MB, free: 11.89 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.00603/0.3442, allocations: 3.813 MB / 461.7 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.3458, allocations: 0.5462 MB / 462.2 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.3463, allocations: 246.7 kB / 462.4 MB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.827e-05/0.3464, allocations: 4.5 kB / 462.4 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006254/0.347, allocations: 302.2 kB / 462.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.585e-06/0.347, allocations: 0 / 462.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004645/0.3516, allocations: 1.876 MB / 464.6 MB, free: 4.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002923/0.3519, allocations: 479.3 kB / 465.1 MB, free: 4.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.3535, allocations: 1.105 MB / 466.2 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.3535, allocations: 41.7 kB / 466.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006082/0.3541, allocations: 0.6599 MB / 466.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002155/0.3543, allocations: 238 kB / 467.1 MB, free: 2.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002993/0.3546, allocations: 202.8 kB / 467.3 MB, free: 2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3548, allocations: 345.9 kB / 467.7 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.3554, allocations: 242.5 kB / 467.9 MB, free: 1.418 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000974/0.3563, allocations: 0.7095 MB / 468.6 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.3578, allocations: 0.9411 MB / 469.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.3578, allocations: 7.938 kB / 469.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002187/0.36, allocations: 1.142 MB / 470.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.639e-05/0.3601, allocations: 67.41 kB / 470.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.3601, allocations: 12.44 kB / 470.8 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006075/0.3607, allocations: 169.6 kB / 470.9 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006747/0.3614, allocations: 199.7 kB / 471.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004629/0.366, allocations: 3.701 MB / 474.8 MB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.367, allocations: 72.02 kB / 474.9 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.468e-05/0.3671, allocations: 48 kB / 475 MB, free: 9.719 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.0005433/0.3677, allocations: 293.6 kB / 475.2 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.3678, allocations: 127.2 kB / 475.4 MB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.3694, allocations: 0.706 MB / 476.1 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.3694, allocations: 8 kB / 476.1 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3694, allocations: 0 / 476.1 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001451/0.3709, allocations: 0.9473 MB / 477 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.3739, allocations: 1.752 MB / 478.8 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.374, allocations: 4.219 kB / 478.8 MB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004809/0.3744, allocations: 107.9 kB / 478.9 MB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004232/0.3749, allocations: 129.6 kB / 479 MB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.62e-05/0.3749, allocations: 16 kB / 479 MB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003745/0.3786, allocations: 3.393 MB / 482.4 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.3786, allocations: 3.938 kB / 482.4 MB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.3806, allocations: 1.053 MB / 483.5 MB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005983/0.3812, allocations: 179.2 kB / 483.7 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.3815, allocations: 23.94 kB / 483.7 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009174/0.3824, allocations: 31.97 kB / 483.7 MB, free: 488 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.3825, allocations: 68.27 kB / 483.8 MB, free: 420 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.852e-05/0.3826, allocations: 20 kB / 483.8 MB, free: 400 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001147/0.3837, allocations: 0.7484 MB / 484.5 MB, free: 15.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3837, allocations: 0 / 484.5 MB, free: 15.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001252/0.385, allocations: 304 kB / 484.8 MB, free: 15.34 MB / 398.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.002502/0.3875, allocations: 1.639 MB / 486.5 MB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.3897, allocations: 1.069 MB / 487.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3897, allocations: 0 / 487.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009733/0.3907, allocations: 0.5395 MB / 488.1 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.3922, allocations: 326.2 kB / 488.4 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/0.4081, allocations: 9.751 MB / 498.2 MB, free: 1.344 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000819/0.4089, allocations: 1.085 MB / 499.2 MB, free: 236 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006319/0.4096, allocations: 153.8 kB / 499.4 MB, free: 80 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006004/0.4102, allocations: 467.4 kB / 499.8 MB, free: 15.62 MB / 414.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4102, allocations: 0 / 499.8 MB, free: 15.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08486/0.495, allocations: 30.05 MB / 0.5175 GB, free: 1.953 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.59/16.08, allocations: 10.92 kB / 0.5175 GB, free: 1.945 MB / 430.1 MB " [Timeout remaining time 644] (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: 28.203614378002385]