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.001538/0.001538, allocations: 181.2 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.961/1.961, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001155/0.001154, allocations: 89.23 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003977, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.34, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1524/0.4924, allocations: 93.86 MB / 468.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003322/0.4928, allocations: 91.94 kB / 468.6 MB, free: 2.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1003/0.5931, allocations: 23.92 MB / 492.5 MB, free: 10.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5932, allocations: 0 / 492.5 MB, free: 10.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.559e-05/0.5933, allocations: 16 kB / 492.5 MB, free: 10.57 MB / 378.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.002926/0.5962, allocations: 1.142 MB / 493.7 MB, free: 9.371 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5963, allocations: 8.031 kB / 493.7 MB, free: 9.363 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002548/0.5965, allocations: 135.2 kB / 493.8 MB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007247/0.5973, allocations: 154.5 kB / 494 MB, free: 9.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.5991, allocations: 0.6796 MB / 494.6 MB, free: 8.352 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.639e-05/0.5992, allocations: 66 kB / 494.7 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001921/0.5994, allocations: 91.84 kB / 494.8 MB, free: 8.195 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/0.6017, allocations: 0.8067 MB / 495.6 MB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.801e-05/0.6018, allocations: 7.938 kB / 495.6 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.6019, allocations: 36 kB / 495.6 MB, free: 7.316 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.953e-05/0.6019, allocations: 20 kB / 495.7 MB, free: 7.297 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.6037, allocations: 0.5505 MB / 496.2 MB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007035/0.6108, allocations: 3.655 MB / 499.9 MB, free: 2.844 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008277/0.6117, allocations: 245.5 kB / 0.4884 GB, free: 2.598 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-05/0.6117, allocations: 3.984 kB / 0.4884 GB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.6118, allocations: 42.56 kB / 0.4884 GB, free: 2.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.856e-06/0.6118, allocations: 0 / 0.4884 GB, free: 2.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.003385/0.6152, allocations: 1.111 MB / 0.4895 GB, free: 1.355 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.6153, allocations: 81.11 kB / 0.4896 GB, free: 1.258 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.6167, allocations: 0.6917 MB / 0.4903 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.6168, allocations: 29.64 kB / 0.4903 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004367/0.6172, allocations: 0.5164 MB / 0.4908 GB, free: 4 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2684/0.8857, allocations: 101.4 kB / 0.4909 GB, free: 98.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/0.8858, allocations: 12.41 kB / 0.4909 GB, free: 98.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.8859, allocations: 338.1 kB / 0.4912 GB, free: 98.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005814/0.8865, allocations: 133.7 kB / 0.4914 GB, free: 98.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007236/0.8872, allocations: 425.3 kB / 0.4918 GB, free: 98.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007116/0.8879, allocations: 204.9 kB / 0.492 GB, free: 98.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.888, allocations: 2.625 kB / 0.492 GB, free: 98.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001809/0.8898, allocations: 0.5884 MB / 0.4925 GB, free: 98.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.8899, allocations: 8.906 kB / 0.4925 GB, free: 98.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.843e-05/0.8899, allocations: 12.84 kB / 0.4926 GB, free: 98.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002237/0.8901, allocations: 39.08 kB / 0.4926 GB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009087/0.8911, allocations: 146.5 kB / 0.4927 GB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.8921, allocations: 1.299 MB / 0.494 GB, free: 96.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009548/0.8931, allocations: 43.89 kB / 0.494 GB, free: 96.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.563e-05/0.8932, allocations: 30.06 kB / 0.4941 GB, free: 96.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (75): * Single equations (assignments): 74 * 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.0005598/0.8937, allocations: 241.9 kB / 0.4943 GB, free: 96.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.894, allocations: 81.41 kB / 0.4944 GB, free: 96.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.8951, allocations: 351.2 kB / 0.4947 GB, free: 96.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.8951, allocations: 3.406 kB / 0.4947 GB, free: 96.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.8951, allocations: 4.375 kB / 0.4947 GB, free: 96.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.8951, allocations: 0 / 0.4947 GB, free: 96.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002526/0.8977, allocations: 1.122 MB / 0.4958 GB, free: 96.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.8977, allocations: 2.25 kB / 0.4958 GB, free: 96.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005443/0.8983, allocations: 64.06 kB / 0.4959 GB, free: 96.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001373/0.8984, allocations: 28.64 kB / 0.4959 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.8985, allocations: 7.781 kB / 0.4959 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009218/0.8994, allocations: 1.282 MB / 0.4972 GB, free: 95.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.8994, allocations: 4.75 kB / 0.4972 GB, free: 95.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.901, allocations: 0.6797 MB / 0.4978 GB, free: 94.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/0.9015, allocations: 185 kB / 0.498 GB, free: 94.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.9017, allocations: 11.05 kB / 0.498 GB, free: 94.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006083/0.9023, allocations: 23.78 kB / 0.498 GB, free: 94.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.469e-05/0.9024, allocations: 36.06 kB / 0.4981 GB, free: 94.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.9025, allocations: 8.188 kB / 0.4981 GB, free: 94.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001048/0.9035, allocations: 0.5243 MB / 0.4986 GB, free: 94.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9035, allocations: 0 / 0.4986 GB, free: 94.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001312/0.9049, allocations: 208.6 kB / 0.4988 GB, free: 94.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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.002364/0.9073, allocations: 1.926 MB / 0.5007 GB, free: 93.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.9087, allocations: 475.2 kB / 0.5011 GB, free: 93.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.9087, allocations: 8.625 kB / 0.5011 GB, free: 93.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006067/0.9094, allocations: 252 kB / 0.5014 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.9111, allocations: 214.2 kB / 0.5016 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/0.9228, allocations: 11.13 MB / 0.5125 GB, free: 84.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.9233, allocations: 0.9726 MB / 0.5134 GB, free: 83.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005712/0.9239, allocations: 321.1 kB / 0.5137 GB, free: 83.59 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.9239, allocations: 0 / 0.5137 GB, free: 83.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.763/3.687, allocations: 18.94 MB / 0.5322 GB, free: 78.71 MB / 378.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