Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001904/0.001904, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 225.6 MB / 234.8 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007711/0.0007712, allocations: 108.6 kB / 286.7 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.733e-05/2.752e-05, allocations: 4 kB / 343.8 MB, free: 8.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 51.48 MB / 395.3 MB, free: 4.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3233/0.4259, allocations: 94.51 MB / 489.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.4261, allocations: 77.27 kB / 489.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06006/0.4862, allocations: 22.83 MB / 0.5007 GB, free: 12.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4862, allocations: 0 / 0.5007 GB, free: 12.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.013e-05/0.4863, allocations: 23.94 kB / 0.5007 GB, free: 12.03 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001933/0.4882, allocations: 0.9676 MB / 0.5016 GB, free: 11.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.4883, allocations: 11.97 kB / 0.5017 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000587/0.4889, allocations: 146.7 kB / 0.5018 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.4903, allocations: 0.6851 MB / 0.5025 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/0.4903, allocations: 28 kB / 0.5025 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.4904, allocations: 44 kB / 0.5025 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008158/0.4913, allocations: 427.8 kB / 0.5029 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.4923, allocations: 0.6331 MB / 0.5036 GB, free: 9.535 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.4924, allocations: 7.906 kB / 0.5036 GB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.043e-05/0.4924, allocations: 0 / 0.5036 GB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.4924, allocations: 20 kB / 0.5036 GB, free: 9.508 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004164/0.4966, allocations: 3.298 MB / 0.5068 GB, free: 6.246 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.497, allocations: 194.7 kB / 0.507 GB, free: 6.047 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.4971, allocations: 89.3 kB / 0.5071 GB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.4972, allocations: 7.953 kB / 0.5071 GB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.4972, allocations: 38.5 kB / 0.5071 GB, free: 5.902 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.4972, allocations: 0 / 0.5071 GB, free: 5.902 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.0013/0.4985, allocations: 0.7602 MB / 0.5079 GB, free: 5.082 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.4986, allocations: 81.33 kB / 0.5079 GB, free: 4.984 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007061/0.4993, allocations: 0.5191 MB / 0.5084 GB, free: 4.457 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.4993, allocations: 29.7 kB / 0.5085 GB, free: 4.422 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000332/0.4997, allocations: 0.5017 MB / 0.509 GB, free: 3.914 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.31e-05/0.4998, allocations: 98.55 kB / 0.5091 GB, free: 3.816 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/0.4998, allocations: 0 / 0.5091 GB, free: 3.816 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.4999, allocations: 378.8 kB / 0.5094 GB, free: 3.438 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.5001, allocations: 93.56 kB / 0.5095 GB, free: 3.348 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003242/0.5004, allocations: 381.9 kB / 0.5099 GB, free: 2.832 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.5007, allocations: 159.8 kB / 0.51 GB, free: 2.676 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.5007, allocations: 11.95 kB / 0.51 GB, free: 2.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007972/0.5015, allocations: 0.4961 MB / 0.5105 GB, free: 2.164 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.5016, allocations: 12.19 kB / 0.5105 GB, free: 2.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.5016, allocations: 8 kB / 0.5105 GB, free: 2.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.5017, allocations: 36.84 kB / 0.5106 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.5022, allocations: 143.8 kB / 0.5107 GB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009215/0.5031, allocations: 1.237 MB / 0.5119 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000422/0.5036, allocations: 27.89 kB / 0.5119 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.602e-05/0.5036, allocations: 40.11 kB / 0.512 GB, free: 0.5469 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0001141/0.5038, allocations: 124.8 kB / 0.5121 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003983/0.5042, allocations: 253.7 kB / 0.5123 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-05/0.5043, allocations: 67.16 kB / 0.5124 GB, free: 96 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004589/0.5047, allocations: 257.2 kB / 0.5127 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.5047, allocations: 0 / 0.5127 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5048, allocations: 0 / 0.5127 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.5048, allocations: 11.98 kB / 0.5127 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.5062, allocations: 0.9174 MB / 0.5136 GB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.5062, allocations: 0 / 0.5136 GB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.5065, allocations: 63.91 kB / 0.5136 GB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.094e-05/0.5066, allocations: 20.84 kB / 0.5136 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.5066, allocations: 11.94 kB / 0.5137 GB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009256/0.5076, allocations: 1.232 MB / 0.5149 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.5076, allocations: 4.031 kB / 0.5149 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006957/0.5083, allocations: 0.5529 MB / 0.5154 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/0.5085, allocations: 160.4 kB / 0.5156 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.915e-05/0.5086, allocations: 4 kB / 0.5156 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/0.5089, allocations: 27.92 kB / 0.5156 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.6e-05/0.509, allocations: 19.98 kB / 0.5156 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.509, allocations: 15.98 kB / 0.5156 GB, free: 12.51 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005019/0.5095, allocations: 391.2 kB / 0.516 GB, free: 12.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5095, allocations: 0 / 0.516 GB, free: 12.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006856/0.5102, allocations: 156 kB / 0.5161 GB, free: 11.98 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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.001338/0.5116, allocations: 1.735 MB / 0.5178 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006301/0.5122, allocations: 387.1 kB / 0.5182 GB, free: 9.793 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5122, allocations: 0 / 0.5182 GB, free: 9.793 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000257/0.5125, allocations: 214.8 kB / 0.5184 GB, free: 9.574 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007462/0.5133, allocations: 150.1 kB / 0.5186 GB, free: 9.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.5155, allocations: 1.103 MB / 0.5196 GB, free: 8.266 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005274/0.5161, allocations: 0.9565 MB / 0.5206 GB, free: 7.277 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003451/0.5164, allocations: 89.55 kB / 0.5206 GB, free: 7.188 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003418/0.5168, allocations: 299.3 kB / 0.5209 GB, free: 6.895 MB / 394.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5168, allocations: 0 / 0.5209 GB, free: 6.895 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.5543, allocations: 13.15 MB / 0.5338 GB, free: 9.875 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.5545, allocations: 149.2 kB / 0.5339 GB, free: 9.684 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.239/2.794, allocations: 4 kB / 0.5339 GB, free: 9.68 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat