Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 180.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008818/0.0008815, allocations: 93.08 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002769, allocations: 12 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2199, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3267, allocations: 98.65 MB / 0.4885 GB, free: 13.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.3271, allocations: 86.48 kB / 0.4886 GB, free: 13.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2579/0.585, allocations: 28.21 MB / 0.5161 GB, free: 93.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.585, allocations: 0 / 0.5161 GB, free: 93.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.724e-05/0.5851, allocations: 26.81 kB / 0.5162 GB, free: 93.4 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00186/0.587, allocations: 1.264 MB / 0.5174 GB, free: 92.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.587, allocations: 11.94 kB / 0.5174 GB, free: 92.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.5872, allocations: 153.2 kB / 0.5176 GB, free: 92.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005764/0.5878, allocations: 188.9 kB / 0.5177 GB, free: 92.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.589, allocations: 0.7977 MB / 0.5185 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.589, allocations: 69.34 kB / 0.5186 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.5891, allocations: 105.9 kB / 0.5187 GB, free: 91.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.5904, allocations: 0.9211 MB / 0.5196 GB, free: 91.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.5904, allocations: 7.609 kB / 0.5196 GB, free: 91.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.779e-05/0.5905, allocations: 39.72 kB / 0.5196 GB, free: 91.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.5905, allocations: 26.16 kB / 0.5197 GB, free: 91.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009964/0.5915, allocations: 0.6391 MB / 0.5203 GB, free: 91.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.5955, allocations: 3.924 MB / 0.5241 GB, free: 88.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005635/0.5961, allocations: 456.9 kB / 0.5245 GB, free: 87.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.5961, allocations: 8.625 kB / 0.5246 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.693e-05/0.5962, allocations: 38.56 kB / 0.5246 GB, free: 87.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.825e-06/0.5962, allocations: 0 / 0.5246 GB, free: 87.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002265/0.5984, allocations: 1.444 MB / 0.526 GB, free: 86.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.5985, allocations: 93.42 kB / 0.5261 GB, free: 86.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006999/0.5992, allocations: 0.6956 MB / 0.5268 GB, free: 85.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.5992, allocations: 37.7 kB / 0.5268 GB, free: 85.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.5994, allocations: 0.5498 MB / 0.5273 GB, free: 84.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.287e-05/0.5995, allocations: 171.8 kB / 0.5275 GB, free: 84.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.14e-05/0.5996, allocations: 20 kB / 0.5275 GB, free: 84.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.116e-05/0.5996, allocations: 338 kB / 0.5278 GB, free: 84.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.5999, allocations: 165.9 kB / 0.528 GB, free: 84.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003508/0.6002, allocations: 464 kB / 0.5285 GB, free: 83.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003675/0.6006, allocations: 248.7 kB / 0.5287 GB, free: 83.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.6006, allocations: 4 kB / 0.5287 GB, free: 83.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001037/0.6017, allocations: 0.7779 MB / 0.5295 GB, free: 82.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.6017, allocations: 12 kB / 0.5295 GB, free: 82.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.6017, allocations: 8.375 kB / 0.5295 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002168/0.6019, allocations: 91.89 kB / 0.5296 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.6024, allocations: 155.7 kB / 0.5297 GB, free: 82.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.604, allocations: 2.937 MB / 0.5326 GB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.6045, allocations: 39.97 kB / 0.5326 GB, free: 79.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.6046, allocations: 36 kB / 0.5326 GB, free: 79.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003824/0.605, allocations: 257.6 kB / 0.5329 GB, free: 78.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.516e-05/0.6051, allocations: 86.97 kB / 0.533 GB, free: 78.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007782/0.6059, allocations: 0.4949 MB / 0.5335 GB, free: 78.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.6059, allocations: 4 kB / 0.5335 GB, free: 78.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.6059, allocations: 4 kB / 0.5335 GB, free: 78.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.6059, allocations: 7.938 kB / 0.5335 GB, free: 78.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.6076, allocations: 1.437 MB / 0.5349 GB, free: 76.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.6076, allocations: 4 kB / 0.5349 GB, free: 76.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.6079, allocations: 75.84 kB / 0.535 GB, free: 76.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.6081, allocations: 77.84 kB / 0.535 GB, free: 76.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.6081, allocations: 12 kB / 0.535 GB, free: 76.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.6097, allocations: 2.926 MB / 0.5379 GB, free: 73.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.6097, allocations: 4.031 kB / 0.5379 GB, free: 73.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.611, allocations: 0.8752 MB / 0.5388 GB, free: 72.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003688/0.6113, allocations: 196 kB / 0.5389 GB, free: 72.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.146e-05/0.6114, allocations: 15.98 kB / 0.539 GB, free: 72.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004079/0.6118, allocations: 31.92 kB / 0.539 GB, free: 72.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.743e-05/0.612, allocations: 43.91 kB / 0.539 GB, free: 72.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.612, allocations: 12 kB / 0.539 GB, free: 72.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006769/0.6127, allocations: 0.5303 MB / 0.5396 GB, free: 71.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6127, allocations: 0 / 0.5396 GB, free: 71.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009159/0.6136, allocations: 240 kB / 0.5398 GB, free: 71.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001528/0.6151, allocations: 2.105 MB / 0.5418 GB, free: 69.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.6162, allocations: 0.7064 MB / 0.5425 GB, free: 68.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.6162, allocations: 0 / 0.5425 GB, free: 68.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005329/0.6167, allocations: 471.2 kB / 0.543 GB, free: 67.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008662/0.6176, allocations: 207.2 kB / 0.5432 GB, free: 67.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007321/0.6249, allocations: 11.51 MB / 0.5544 GB, free: 55.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.6254, allocations: 1.024 MB / 0.5554 GB, free: 54.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004656/0.6259, allocations: 111.3 kB / 0.5555 GB, free: 54.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000332/0.6262, allocations: 379.3 kB / 0.5559 GB, free: 54.33 MB / 378.7 MB Notification: Performance of SimCode: time 6.62e-07/0.6262, allocations: 0 / 0.5559 GB, free: 54.33 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03355/0.6598, allocations: 20.39 MB / 0.5758 GB, free: 34.26 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/0.66, allocations: 214.9 kB / 0.576 GB, free: 34.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/3.32, allocations: 11.75 kB / 0.576 GB, free: 34.01 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat