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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 98.31 kB / 16.3 MB, free: 5.656 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.001117/0.001117, allocations: 185.5 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 241.1 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.000283, allocations: 7.984 kB / 300.8 MB, free: 6.383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1196, allocations: 50.42 MB / 351.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009283/0.1289, allocations: 7.646 MB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006347/0.1353, allocations: 2.959 MB / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001606/0.137, allocations: 23.94 kB / 361.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001988/0.139, allocations: 0.4975 MB / 362.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002785/0.1418, allocations: 0.6271 MB / 363 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009447/0.1427, allocations: 223.6 kB / 363.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00296/0.1457, allocations: 1.255 MB / 364.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008928/0.1466, allocations: 499.4 kB / 365 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009978/0.1476, allocations: 0.5176 MB / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007774/0.1484, allocations: 0.5872 MB / 366.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.1485, allocations: 76 kB / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003551/0.1489, allocations: 120 kB / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.1491, allocations: 231 kB / 366.5 MB, free: 4.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.1495, allocations: 309 kB / 366.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001582/0.1511, allocations: 1.441 MB / 368.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1511, allocations: 0 / 368.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1511, allocations: 0 / 368.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.621e-05/0.1511, allocations: 0 / 368.2 MB, free: 2.887 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.003168/0.1543, allocations: 1.551 MB / 369.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.884e-05/0.1544, allocations: 12.03 kB / 369.8 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002502/0.1546, allocations: 160.8 kB / 369.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005134/0.1552, allocations: 186 kB / 370.1 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.1566, allocations: 0.7658 MB / 370.9 MB, free: 92 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2491/0.4057, allocations: 110.4 kB / 371 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005339/0.4063, allocations: 110.5 kB / 371.1 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002604/0.4089, allocations: 1.13 MB / 372.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.409, allocations: 7.766 kB / 372.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-05/0.4091, allocations: 46.06 kB / 372.3 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.4091, allocations: 29.44 kB / 372.3 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.411, allocations: 0.7668 MB / 373.1 MB, free: 23.93 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.006603/0.4176, allocations: 3.875 MB / 377 MB, free: 21.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.4193, allocations: 0.5991 MB / 377.6 MB, free: 21.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-05/0.4193, allocations: 17.98 kB / 377.6 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006985/0.42, allocations: 302.7 kB / 377.9 MB, free: 21.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.915e-06/0.4201, allocations: 1.25 kB / 377.9 MB, free: 21.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005147/0.4252, allocations: 2.102 MB / 380 MB, free: 20.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.4254, allocations: 482.6 kB / 380.4 MB, free: 19.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/0.4271, allocations: 1.016 MB / 381.5 MB, free: 19.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.32e-05/0.4272, allocations: 39.48 kB / 381.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004697/0.4277, allocations: 0.6403 MB / 382.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.4279, allocations: 230.7 kB / 382.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.719e-05/0.428, allocations: 21.91 kB / 382.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4281, allocations: 342.3 kB / 382.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/0.4287, allocations: 258.5 kB / 383 MB, free: 18.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000853/0.4295, allocations: 0.7081 MB / 383.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007568/0.4303, allocations: 410.2 kB / 384.1 MB, free: 17.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.4303, allocations: 2.969 kB / 384.1 MB, free: 17.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002306/0.4327, allocations: 1.135 MB / 385.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.517e-05/0.4327, allocations: 67.92 kB / 385.3 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.643e-05/0.4328, allocations: 12.64 kB / 385.3 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007076/0.4335, allocations: 171.3 kB / 385.5 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007659/0.4343, allocations: 209.9 kB / 385.7 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00407/0.4384, allocations: 3.592 MB / 389.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.4399, allocations: 78.2 kB / 389.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.4401, allocations: 47.78 kB / 389.4 MB, free: 13.33 MB / 302.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001091/0.4412, allocations: 304.6 kB / 389.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005631/0.4418, allocations: 124.1 kB / 389.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/0.4441, allocations: 0.7203 MB / 390.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.4442, allocations: 13.31 kB / 390.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.4442, allocations: 1.031 kB / 390.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001624/0.4458, allocations: 0.9718 MB / 391.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004642/0.4505, allocations: 1.746 MB / 393.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.4505, allocations: 3.906 kB / 393.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005046/0.451, allocations: 110.5 kB / 393.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004747/0.4515, allocations: 134.7 kB / 393.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/0.4516, allocations: 11.97 kB / 393.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003268/0.4549, allocations: 3.31 MB / 396.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.4549, allocations: 1.5 kB / 396.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.4573, allocations: 1.168 MB / 398 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009594/0.4583, allocations: 241 kB / 398.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004649/0.4588, allocations: 24.44 kB / 398.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.4598, allocations: 45.61 kB / 398.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.46, allocations: 53.8 kB / 398.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/0.4601, allocations: 21.48 kB / 398.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001638/0.4617, allocations: 0.674 MB / 399 MB, free: 6.145 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4618, allocations: 1.469 kB / 399 MB, free: 6.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002048/0.4638, allocations: 301.6 kB / 399.3 MB, free: 6.117 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002754/0.4666, allocations: 2.218 MB / 401.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002357/0.469, allocations: 1.099 MB / 402.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.469, allocations: 0 / 402.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009459/0.4699, allocations: 0.5557 MB / 403.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.4719, allocations: 310.4 kB / 403.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/0.4875, allocations: 11.36 MB / 414.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/0.4896, allocations: 1.113 MB / 416 MB, free: 5.973 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001397/0.491, allocations: 137.3 kB / 416.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009932/0.4921, allocations: 463.3 kB / 416.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of SimCode: time 1.493e-06/0.4921, allocations: 0 / 416.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05786/0.55, allocations: 25.2 MB / 441.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002753/0.5503, allocations: 224.7 kB / 442 MB, free: 12.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.598/3.149, allocations: 0 / 442 MB, free: 12.39 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat