Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.147/2.147, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 90.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003918, allocations: 12 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09761, allocations: 47.58 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01345/0.1111, allocations: 7.612 MB / 382.3 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007385/0.1185, allocations: 2.948 MB / 385.2 MB, free: 4.707 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.1199, allocations: 23.94 kB / 385.2 MB, free: 4.684 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.1223, allocations: 0.4898 MB / 385.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002822/0.1251, allocations: 0.631 MB / 386.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.1263, allocations: 223.7 kB / 386.6 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003293/0.1296, allocations: 1.257 MB / 387.8 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.1308, allocations: 495.4 kB / 388.3 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001418/0.1322, allocations: 0.5176 MB / 388.8 MB, free: 1.059 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.134, allocations: 0.595 MB / 389.4 MB, free: 472 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003588/0.1344, allocations: 76 kB / 389.5 MB, free: 396 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007465/0.1352, allocations: 116 kB / 389.6 MB, free: 280 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002935/0.1355, allocations: 223 kB / 389.8 MB, free: 56 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2587/0.3942, allocations: 306.2 kB / 390.1 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003023/0.3972, allocations: 1.436 MB / 391.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3973, allocations: 1.469 kB / 391.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3973, allocations: 0 / 391.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.064e-05/0.3974, allocations: 0.9688 kB / 391.6 MB, free: 10.52 MB / 282.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.005352/0.4028, allocations: 1.549 MB / 393.1 MB, free: 9.613 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.4028, allocations: 8.25 kB / 393.1 MB, free: 9.613 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007546/0.4036, allocations: 165.4 kB / 393.3 MB, free: 9.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008251/0.4044, allocations: 183.5 kB / 393.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002663/0.4071, allocations: 0.764 MB / 394.2 MB, free: 9.168 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.4074, allocations: 115.9 kB / 394.3 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004111/0.4078, allocations: 114.1 kB / 394.5 MB, free: 9.129 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00376/0.4116, allocations: 1.132 MB / 395.6 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.138e-05/0.4117, allocations: 3.422 kB / 395.6 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.4119, allocations: 51.12 kB / 395.6 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/0.412, allocations: 25 kB / 395.7 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.4153, allocations: 0.7691 MB / 396.4 MB, free: 8.859 MB / 282.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.01119/0.4265, allocations: 3.889 MB / 400.3 MB, free: 7.395 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/0.4293, allocations: 0.594 MB / 400.9 MB, free: 7.355 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.309e-05/0.4295, allocations: 11.34 kB / 400.9 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.4305, allocations: 304.1 kB / 401.2 MB, free: 7.293 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 3.737e-06/0.4306, allocations: 0 / 401.2 MB, free: 7.293 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.00824/0.4388, allocations: 2.107 MB / 403.3 MB, free: 6.535 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.439, allocations: 475.6 kB / 403.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/0.4413, allocations: 1.018 MB / 404.8 MB, free: 5.809 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002314/0.4415, allocations: 47.17 kB / 404.9 MB, free: 5.773 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005463/0.4421, allocations: 0.6242 MB / 405.5 MB, free: 5.422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00029/0.4424, allocations: 231.2 kB / 405.7 MB, free: 5.281 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.4425, allocations: 20.56 kB / 405.7 MB, free: 5.281 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4426, allocations: 349.9 kB / 406.1 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009682/0.4436, allocations: 253.6 kB / 406.3 MB, free: 4.961 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.4448, allocations: 0.7093 MB / 407 MB, free: 4.398 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.446, allocations: 412.7 kB / 407.4 MB, free: 4.312 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/0.4461, allocations: 3.781 kB / 407.4 MB, free: 4.312 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003179/0.4493, allocations: 1.052 MB / 408.5 MB, free: 4.156 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.802e-05/0.4494, allocations: 67.48 kB / 408.6 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.774e-05/0.4494, allocations: 11.41 kB / 408.6 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009274/0.4503, allocations: 174 kB / 408.7 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.4518, allocations: 212.6 kB / 408.9 MB, free: 4.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005756/0.4576, allocations: 3.601 MB / 412.5 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001936/0.4596, allocations: 78.56 kB / 412.6 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/0.4597, allocations: 49.86 kB / 412.7 MB, free: 0.7578 MB / 282.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 ($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.0008479/0.4606, allocations: 295.3 kB / 413 MB, free: 0.543 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.4609, allocations: 128.3 kB / 413.1 MB, free: 488 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002409/0.4634, allocations: 0.7225 MB / 413.8 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.4634, allocations: 10.86 kB / 413.8 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4634, allocations: 2.906 kB / 413.8 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002468/0.4659, allocations: 0.9649 MB / 414.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005286/0.4712, allocations: 1.755 MB / 416.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.4713, allocations: 1.969 kB / 416.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009447/0.4722, allocations: 116.5 kB / 416.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007207/0.473, allocations: 126.9 kB / 416.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/0.4731, allocations: 15.92 kB / 416.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005146/0.4783, allocations: 3.316 MB / 420.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4783, allocations: 1.594 kB / 420.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003506/0.4818, allocations: 1.16 MB / 421.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009008/0.4828, allocations: 243.8 kB / 421.5 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.4831, allocations: 16.53 kB / 421.5 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.4845, allocations: 53.75 kB / 421.6 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.4848, allocations: 58.94 kB / 421.6 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.949e-05/0.4849, allocations: 17.22 kB / 421.7 MB, free: 9.793 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001555/0.4864, allocations: 0.6709 MB / 422.3 MB, free: 9.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4865, allocations: 0 / 422.3 MB, free: 9.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00203/0.4885, allocations: 301.1 kB / 422.6 MB, free: 9.379 MB / 298.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 (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.004209/0.4928, allocations: 2.225 MB / 424.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003581/0.4964, allocations: 1.1 MB / 425.9 MB, free: 6.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.4964, allocations: 4 kB / 425.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/0.4982, allocations: 0.5542 MB / 426.5 MB, free: 5.766 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/0.5009, allocations: 306.5 kB / 426.8 MB, free: 5.465 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.5136, allocations: 11.38 MB / 438.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.5147, allocations: 1.109 MB / 439.3 MB, free: 8.684 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.5157, allocations: 471.3 kB / 439.8 MB, free: 8.223 MB / 314.7 MB Notification: Performance of SimCode: time 1.362e-06/0.5158, allocations: 0 / 439.8 MB, free: 8.223 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.105/3.621, allocations: 29.5 MB / 469.3 MB, free: 10.71 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat