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_Temperature.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_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.001559/0.001563, allocations: 183.9 kB / 16.4 MB, free: 5.75 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.119/2.119, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001182/0.001182, allocations: 100.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005492/0.0005493, allocations: 16 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3384, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.00915/0.3476, allocations: 6.314 MB / 381 MB, free: 40.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.3532, allocations: 2.498 MB / 383.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.3544, allocations: 23.06 kB / 383.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.3562, allocations: 440.4 kB / 383.9 MB, free: 38.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001927/0.3582, allocations: 468.5 kB / 384.4 MB, free: 37.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007499/0.359, allocations: 151.8 kB / 384.5 MB, free: 37.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.3615, allocations: 0.8755 MB / 385.4 MB, free: 37.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000867/0.3624, allocations: 404.4 kB / 385.8 MB, free: 36.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008511/0.3633, allocations: 362.5 kB / 386.1 MB, free: 36.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007414/0.364, allocations: 410.8 kB / 386.5 MB, free: 36.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.3642, allocations: 50.34 kB / 386.6 MB, free: 36.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004919/0.3647, allocations: 88.16 kB / 386.7 MB, free: 36.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.3649, allocations: 152.4 kB / 386.8 MB, free: 36.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000298/0.3652, allocations: 226.2 kB / 387 MB, free: 36.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001504/0.3667, allocations: 1.089 MB / 388.1 MB, free: 35.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3667, allocations: 3.938 kB / 388.1 MB, free: 35.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3668, allocations: 4 kB / 388.1 MB, free: 35.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.752e-05/0.3668, allocations: 0 / 388.1 MB, free: 35.26 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002707/0.3695, allocations: 1.145 MB / 389.3 MB, free: 34.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.3696, allocations: 8.031 kB / 389.3 MB, free: 34.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002097/0.3698, allocations: 131.3 kB / 389.4 MB, free: 33.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004927/0.3703, allocations: 134.7 kB / 389.6 MB, free: 33.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.3716, allocations: 0.6133 MB / 390.2 MB, free: 33.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.3716, allocations: 58 kB / 390.2 MB, free: 33.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.3718, allocations: 87.98 kB / 390.3 MB, free: 32.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.3737, allocations: 0.8145 MB / 391.1 MB, free: 32.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.547e-05/0.3738, allocations: 7.906 kB / 391.1 MB, free: 32.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.79e-05/0.3739, allocations: 36 kB / 391.2 MB, free: 32.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.3739, allocations: 20 kB / 391.2 MB, free: 32.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.3756, allocations: 0.5504 MB / 391.7 MB, free: 31.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00563/0.3812, allocations: 3.555 MB / 395.3 MB, free: 27.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007478/0.382, allocations: 234.7 kB / 395.5 MB, free: 27.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.822e-05/0.3821, allocations: 12.06 kB / 395.5 MB, free: 27.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.3821, allocations: 46.48 kB / 395.6 MB, free: 27.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 3.056e-06/0.3821, allocations: 0 / 395.6 MB, free: 27.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.003079/0.3852, allocations: 1.097 MB / 396.7 MB, free: 26.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.3853, allocations: 85.11 kB / 396.8 MB, free: 26.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.3864, allocations: 0.6998 MB / 397.5 MB, free: 25.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.3865, allocations: 33.7 kB / 397.5 MB, free: 25.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.3868, allocations: 0.5278 MB / 398 MB, free: 24.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.363e-05/0.3869, allocations: 114.4 kB / 398.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.3869, allocations: 12 kB / 398.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.387, allocations: 334.8 kB / 398.5 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004523/0.3875, allocations: 137.2 kB / 398.6 MB, free: 24.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005702/0.3881, allocations: 446.2 kB / 399 MB, free: 23.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005612/0.3887, allocations: 212.1 kB / 399.2 MB, free: 23.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3887, allocations: 4 kB / 399.2 MB, free: 23.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001465/0.3902, allocations: 0.6078 MB / 399.9 MB, free: 22.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.3902, allocations: 16.03 kB / 399.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.3902, allocations: 8 kB / 399.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.3905, allocations: 32.86 kB / 399.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008928/0.3914, allocations: 155.7 kB / 400.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009888/0.3924, allocations: 1.303 MB / 401.4 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008658/0.3933, allocations: 48.14 kB / 401.4 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.306e-05/0.3933, allocations: 32 kB / 401.4 MB, free: 21.15 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004504/0.3938, allocations: 245.5 kB / 401.7 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.3939, allocations: 75.06 kB / 401.8 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009869/0.3949, allocations: 342 kB / 402.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.952e-05/0.395, allocations: 3.938 kB / 402.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.395, allocations: 4 kB / 402.1 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.395, allocations: 3.984 kB / 402.1 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002277/0.3973, allocations: 1.101 MB / 403.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3973, allocations: 0 / 403.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005336/0.3979, allocations: 67.89 kB / 403.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001356/0.398, allocations: 28.97 kB / 403.3 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.3981, allocations: 11.98 kB / 403.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009074/0.399, allocations: 1.284 MB / 404.6 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.399, allocations: 3.938 kB / 404.6 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.4004, allocations: 0.6742 MB / 405.3 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.4008, allocations: 172.2 kB / 405.4 MB, free: 16.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.4009, allocations: 8 kB / 405.5 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/0.4015, allocations: 31.92 kB / 405.5 MB, free: 16.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.4016, allocations: 27.92 kB / 405.5 MB, free: 16.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.4017, allocations: 11.98 kB / 405.5 MB, free: 16.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007846/0.4024, allocations: 483 kB / 406 MB, free: 16.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4025, allocations: 0 / 406 MB, free: 16.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001096/0.4036, allocations: 164 kB / 406.2 MB, free: 16.11 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001791/0.4054, allocations: 1.712 MB / 407.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.4067, allocations: 484 kB / 408.3 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.4067, allocations: 0 / 408.3 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005708/0.4073, allocations: 259.8 kB / 408.6 MB, free: 13.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/0.4088, allocations: 164.2 kB / 408.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/0.4199, allocations: 11.52 MB / 420.3 MB, free: 1.598 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004704/0.4204, allocations: 0.976 MB / 421.2 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005265/0.4209, allocations: 319.3 kB / 421.6 MB, free: 288 kB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4209, allocations: 0 / 421.6 MB, free: 288 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.901/3.322, allocations: 16.96 MB / 438.5 MB, free: 15.32 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature_res.mat does not exist to compare? outputFormat=mat