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_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.001602/0.001606, allocations: 183.3 kB / 16.4 MB, free: 5.754 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.131/2.131, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001159/0.001159, allocations: 88.42 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003866, allocations: 11.98 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3456, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01375/0.3594, allocations: 9.607 MB / 384.2 MB, free: 38.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007409/0.3669, allocations: 3.237 MB / 387.5 MB, free: 35.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002111/0.369, allocations: 33.12 kB / 387.5 MB, free: 35.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002638/0.3717, allocations: 0.5211 MB / 388 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003409/0.3752, allocations: 0.7581 MB / 388.8 MB, free: 34.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.3766, allocations: 251.8 kB / 389 MB, free: 34.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004496/0.3811, allocations: 1.694 MB / 390.7 MB, free: 32.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.3825, allocations: 0.6872 MB / 391.4 MB, free: 31.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001245/0.3838, allocations: 0.6848 MB / 392.1 MB, free: 31.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.3849, allocations: 0.7543 MB / 392.9 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002646/0.3852, allocations: 103.9 kB / 393 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006071/0.3858, allocations: 136 kB / 393.1 MB, free: 30.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.3861, allocations: 290.7 kB / 393.4 MB, free: 30.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004145/0.3865, allocations: 404.8 kB / 393.8 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002539/0.3891, allocations: 2.13 MB / 395.9 MB, free: 27.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3891, allocations: 4 kB / 395.9 MB, free: 27.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3891, allocations: 0 / 395.9 MB, free: 27.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.296e-05/0.3892, allocations: 0 / 395.9 MB, free: 27.47 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004455/0.3937, allocations: 1.829 MB / 397.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.3937, allocations: 12.03 kB / 397.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003854/0.3941, allocations: 223.9 kB / 398 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008859/0.395, allocations: 253.5 kB / 398.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002631/0.3977, allocations: 1.071 MB / 399.3 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.014e-05/0.3978, allocations: 115.1 kB / 399.4 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002926/0.3981, allocations: 163.9 kB / 399.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003704/0.4018, allocations: 1.461 MB / 401 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.001e-05/0.4019, allocations: 7.906 kB / 401 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001838/0.4021, allocations: 68 kB / 401.1 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.4022, allocations: 40 kB / 401.1 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003339/0.4055, allocations: 1.01 MB / 402.1 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.4165, allocations: 6.172 MB / 408.3 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0019/0.4185, allocations: 0.5724 MB / 408.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.77e-05/0.4186, allocations: 8.562 kB / 408.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.4186, allocations: 47.02 kB / 408.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 3.005e-06/0.4186, allocations: 0 / 408.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.007025/0.4256, allocations: 2.272 MB / 411.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.4257, allocations: 111.5 kB / 411.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/0.4277, allocations: 1.181 MB / 412.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.4279, allocations: 33.7 kB / 412.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005238/0.4284, allocations: 0.8352 MB / 413.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.4287, allocations: 260.3 kB / 413.6 MB, free: 9.094 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.575e-05/0.4287, allocations: 24 kB / 413.6 MB, free: 9.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.4288, allocations: 362.7 kB / 414 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008937/0.4297, allocations: 270.5 kB / 414.3 MB, free: 8.445 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.4308, allocations: 0.7225 MB / 415 MB, free: 7.508 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.4319, allocations: 387 kB / 415.4 MB, free: 7.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.4319, allocations: 8 kB / 415.4 MB, free: 7.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003056/0.435, allocations: 1.124 MB / 416.5 MB, free: 5.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.4351, allocations: 15.98 kB / 416.5 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/0.4351, allocations: 12 kB / 416.5 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005836/0.4357, allocations: 118.8 kB / 416.6 MB, free: 5.828 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/0.4373, allocations: 259.5 kB / 416.9 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0039/0.4412, allocations: 4.2 MB / 421.1 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.4427, allocations: 55.89 kB / 421.1 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.4428, allocations: 52 kB / 421.2 MB, free: 0.8711 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008256/0.4437, allocations: 357.5 kB / 421.5 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.444, allocations: 134.3 kB / 421.7 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002687/0.4467, allocations: 0.7986 MB / 422.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.728e-05/0.4467, allocations: 11.98 kB / 422.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4467, allocations: 4 kB / 422.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.4467, allocations: 0 / 422.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006215/0.453, allocations: 2.177 MB / 424.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.453, allocations: 4 kB / 424.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.4542, allocations: 127.8 kB / 424.8 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000629/0.4548, allocations: 114.6 kB / 424.9 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.357e-05/0.4549, allocations: 19.95 kB / 424.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005706/0.4607, allocations: 4.302 MB / 429.2 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/0.4607, allocations: 8.094 kB / 429.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003985/0.4647, allocations: 1.428 MB / 430.7 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007218/0.4655, allocations: 263.2 kB / 430.9 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002702/0.4658, allocations: 23.94 kB / 430.9 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.4668, allocations: 35.98 kB / 431 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.467, allocations: 64.42 kB / 431 MB, free: 6.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.851e-05/0.4671, allocations: 23.98 kB / 431.1 MB, free: 6.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001779/0.4689, allocations: 0.7766 MB / 431.8 MB, free: 5.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4689, allocations: 0 / 431.8 MB, free: 5.457 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001972/0.4709, allocations: 324 kB / 432.2 MB, free: 5.141 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00511/0.476, allocations: 2.943 MB / 435.1 MB, free: 2.062 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.4792, allocations: 1.088 MB / 436.2 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.596e-05/0.4793, allocations: 4 kB / 436.2 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.481, allocations: 0.681 MB / 436.9 MB, free: 224 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/0.4838, allocations: 335.8 kB / 437.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03056/0.5144, allocations: 18.55 MB / 455.8 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001287/0.5157, allocations: 1.245 MB / 457 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/0.5171, allocations: 0.6164 MB / 457.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of SimCode: time 2.254e-06/0.5171, allocations: 4 kB / 457.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.6/4.117, allocations: 45.31 MB / 0.4911 GB, free: 13.4 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses_res.mat does not exist to compare? outputFormat=mat