Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 96.38 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001981/0.001981, allocations: 192.2 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 52.16 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08979, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0112/0.101, allocations: 9.55 MB / 336.9 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005416/0.1065, allocations: 3.108 MB / 340 MB, free: 7.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001199/0.1077, allocations: 27.94 kB / 340.1 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001811/0.1096, allocations: 0.5977 MB / 340.7 MB, free: 7.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001808/0.1115, allocations: 0.5502 MB / 341.2 MB, free: 6.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008916/0.1124, allocations: 323.5 kB / 341.5 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002218/0.1146, allocations: 1.748 MB / 343.3 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009209/0.1155, allocations: 0.6375 MB / 343.9 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009307/0.1165, allocations: 0.6771 MB / 344.6 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.1176, allocations: 0.7389 MB / 345.3 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003202/0.1179, allocations: 160 kB / 345.5 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006744/0.1186, allocations: 196 kB / 345.7 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00037/0.1189, allocations: 334.8 kB / 346 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001555/0.1205, allocations: 0.8048 MB / 346.8 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002311/0.1228, allocations: 1.958 MB / 348.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1229, allocations: 0 / 348.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1229, allocations: 0 / 348.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.444e-05/0.1229, allocations: 0 / 348.8 MB, free: 14.86 MB / 302.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.003565/0.1265, allocations: 1.797 MB / 350.6 MB, free: 13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.1265, allocations: 12.03 kB / 350.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002/0.1268, allocations: 169 kB / 350.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006111/0.1274, allocations: 195 kB / 350.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.1288, allocations: 0.8133 MB / 351.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.1289, allocations: 112.4 kB / 351.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.1291, allocations: 115.8 kB / 352 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.1309, allocations: 1.142 MB / 353.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.1309, allocations: 3.906 kB / 353.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.048e-05/0.131, allocations: 48 kB / 353.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.742e-05/0.1311, allocations: 24 kB / 353.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.1325, allocations: 0.7613 MB / 353.9 MB, free: 9.457 MB / 302.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.00578/0.1383, allocations: 3.957 MB / 357.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.14, allocations: 0.5811 MB / 358.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005845/0.1406, allocations: 262.9 kB / 358.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.1406, allocations: 16.55 kB / 358.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000655/0.1413, allocations: 299.5 kB / 359.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.386e-06/0.1413, allocations: 0 / 359.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004627/0.1459, allocations: 2.069 MB / 361.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002034/0.1462, allocations: 487.2 kB / 361.6 MB, free: 1.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.1478, allocations: 1.105 MB / 362.7 MB, free: 272 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.642e-05/0.1479, allocations: 37.7 kB / 362.7 MB, free: 228 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006381/0.1485, allocations: 0.6428 MB / 363.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.1488, allocations: 236.7 kB / 363.6 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003389/0.1491, allocations: 198.7 kB / 363.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.1493, allocations: 345.9 kB / 364.1 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006145/0.1499, allocations: 238.5 kB / 364.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.151, allocations: 0.7247 MB / 365.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.1527, allocations: 0.9414 MB / 366 MB, free: 12.51 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.1527, allocations: 8 kB / 366 MB, free: 12.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002365/0.1551, allocations: 1.134 MB / 367.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.91e-05/0.1552, allocations: 63.41 kB / 367.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/0.1552, allocations: 12.05 kB / 367.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007264/0.156, allocations: 179.1 kB / 367.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007034/0.1567, allocations: 203.7 kB / 367.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004495/0.1612, allocations: 3.891 MB / 371.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.1623, allocations: 59.88 kB / 371.6 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.1625, allocations: 48 kB / 371.6 MB, free: 6.609 MB / 318.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.0005657/0.163, allocations: 293.7 kB / 371.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002603/0.1633, allocations: 130.5 kB / 372 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001558/0.1649, allocations: 0.6999 MB / 372.7 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.1649, allocations: 12 kB / 372.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1649, allocations: 0 / 372.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001405/0.1663, allocations: 0.9606 MB / 373.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003192/0.1695, allocations: 1.798 MB / 375.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.1695, allocations: 4 kB / 375.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004906/0.17, allocations: 103.9 kB / 375.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000424/0.1705, allocations: 133.8 kB / 375.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.293e-05/0.1705, allocations: 12 kB / 375.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1532/0.3238, allocations: 3.582 MB / 379.3 MB, free: 50.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3238, allocations: 6.125 kB / 379.3 MB, free: 50.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/0.3257, allocations: 1.045 MB / 380.4 MB, free: 50.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004647/0.3262, allocations: 258.2 kB / 380.6 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.3264, allocations: 15.73 kB / 380.7 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006291/0.327, allocations: 42.17 kB / 380.7 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.3272, allocations: 56.53 kB / 380.8 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.3272, allocations: 20.23 kB / 380.8 MB, free: 50.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001251/0.3285, allocations: 0.7444 MB / 381.5 MB, free: 50.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3285, allocations: 0 / 381.5 MB, free: 50.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001116/0.3296, allocations: 315.2 kB / 381.8 MB, free: 50.16 MB / 318.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.00202/0.3316, allocations: 1.622 MB / 383.5 MB, free: 49.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.3337, allocations: 1.124 MB / 384.6 MB, free: 48.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3337, allocations: 1.156 kB / 384.6 MB, free: 48.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008901/0.3346, allocations: 0.5518 MB / 385.1 MB, free: 48.4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.3361, allocations: 336.8 kB / 385.5 MB, free: 48.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.3498, allocations: 10.75 MB / 396.2 MB, free: 41.63 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006574/0.3506, allocations: 1.083 MB / 397.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007/0.3513, allocations: 144.3 kB / 397.4 MB, free: 40.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004486/0.3517, allocations: 480 kB / 397.9 MB, free: 40.51 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3517, allocations: 0 / 397.9 MB, free: 40.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09186/0.4436, allocations: 28.6 MB / 426.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.85, allocations: 12.38 kB / 426.5 MB, free: 14.87 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches