Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 175.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 221.5 MB / 230.3 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000899/0.0008989, allocations: 97.69 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.566e-05/2.566e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3409/0.4445, allocations: 93.69 MB / 481.3 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.4448, allocations: 79.95 kB / 481.3 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05987/0.5047, allocations: 22.77 MB / 0.4923 GB, free: 9.969 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.5047, allocations: 0 / 0.4923 GB, free: 9.969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.366e-05/0.5048, allocations: 16 kB / 0.4923 GB, free: 9.953 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.001382/0.5062, allocations: 0.9754 MB / 0.4933 GB, free: 8.934 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.5062, allocations: 8.031 kB / 0.4933 GB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004794/0.5067, allocations: 138.8 kB / 0.4934 GB, free: 8.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.5078, allocations: 0.6874 MB / 0.4941 GB, free: 8.055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.5078, allocations: 28 kB / 0.4941 GB, free: 8.027 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.897e-05/0.5079, allocations: 47.98 kB / 0.4942 GB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007793/0.5087, allocations: 435.9 kB / 0.4946 GB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.5098, allocations: 0.6272 MB / 0.4952 GB, free: 6.898 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.5098, allocations: 11.84 kB / 0.4952 GB, free: 6.887 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-05/0.5099, allocations: 0 / 0.4952 GB, free: 6.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.5099, allocations: 20 kB / 0.4952 GB, free: 6.867 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.5138, allocations: 3.302 MB / 0.4984 GB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003401/0.5142, allocations: 196.3 kB / 0.4986 GB, free: 3.164 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.5143, allocations: 89.3 kB / 0.4987 GB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.5144, allocations: 0 / 0.4987 GB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.5144, allocations: 46.64 kB / 0.4988 GB, free: 3.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.5144, allocations: 0 / 0.4988 GB, free: 3.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001259/0.5157, allocations: 0.7567 MB / 0.4995 GB, free: 2.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.5157, allocations: 77.34 kB / 0.4996 GB, free: 2.109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006175/0.5164, allocations: 0.5152 MB / 0.5001 GB, free: 1.586 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.5164, allocations: 25.7 kB / 0.5001 GB, free: 1.555 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.5167, allocations: 0.5056 MB / 0.5006 GB, free: 1.043 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.166e-05/0.5168, allocations: 102.5 kB / 0.5007 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.5168, allocations: 0 / 0.5007 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.517, allocations: 378.8 kB / 0.501 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.5171, allocations: 93.56 kB / 0.5011 GB, free: 484 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000331/0.5175, allocations: 378.5 kB / 0.5015 GB, free: 15.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.5177, allocations: 163.8 kB / 0.5017 GB, free: 15.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.5177, allocations: 4 kB / 0.5017 GB, free: 15.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007475/0.5185, allocations: 0.5103 MB / 0.5022 GB, free: 15.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.5185, allocations: 8 kB / 0.5022 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.5186, allocations: 8 kB / 0.5022 GB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.5187, allocations: 36.84 kB / 0.5022 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.5192, allocations: 147.8 kB / 0.5023 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008991/0.5201, allocations: 1.24 MB / 0.5036 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.5205, allocations: 27.89 kB / 0.5036 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.219e-05/0.5205, allocations: 32.05 kB / 0.5036 GB, free: 13.66 MB / 394.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.0001117/0.5206, allocations: 128.8 kB / 0.5037 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003851/0.521, allocations: 261.8 kB / 0.504 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.5e-05/0.5211, allocations: 67.16 kB / 0.5041 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004283/0.5216, allocations: 253.2 kB / 0.5043 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.5216, allocations: 0 / 0.5043 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.5216, allocations: 8 kB / 0.5043 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.5216, allocations: 0 / 0.5043 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001377/0.523, allocations: 0.9187 MB / 0.5052 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.523, allocations: 4.219 kB / 0.5052 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.5233, allocations: 59.97 kB / 0.5053 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.408e-05/0.5234, allocations: 28.78 kB / 0.5053 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.5234, allocations: 7.938 kB / 0.5053 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008003/0.5242, allocations: 1.217 MB / 0.5065 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.5242, allocations: 4.031 kB / 0.5065 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000644/0.5249, allocations: 0.5522 MB / 0.507 GB, free: 9.867 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.5251, allocations: 160.4 kB / 0.5072 GB, free: 9.691 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.12e-05/0.5252, allocations: 7.984 kB / 0.5072 GB, free: 9.684 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.5255, allocations: 15.98 kB / 0.5072 GB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.5255, allocations: 35.86 kB / 0.5072 GB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.5256, allocations: 8 kB / 0.5072 GB, free: 9.625 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004752/0.526, allocations: 391.2 kB / 0.5076 GB, free: 9.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.526, allocations: 0 / 0.5076 GB, free: 9.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006869/0.5267, allocations: 159.9 kB / 0.5078 GB, free: 9.094 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.00135/0.5281, allocations: 1.729 MB / 0.5095 GB, free: 7.289 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006425/0.5288, allocations: 391.5 kB / 0.5098 GB, free: 6.898 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.5288, allocations: 0 / 0.5098 GB, free: 6.898 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002557/0.529, allocations: 213 kB / 0.51 GB, free: 6.684 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008118/0.5299, allocations: 155 kB / 0.5102 GB, free: 6.535 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.532, allocations: 1.109 MB / 0.5113 GB, free: 5.363 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005431/0.5326, allocations: 0.9565 MB / 0.5122 GB, free: 4.375 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003391/0.5329, allocations: 85.56 kB / 0.5123 GB, free: 4.289 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003431/0.5333, allocations: 299.3 kB / 0.5126 GB, free: 3.996 MB / 394.7 MB Notification: Performance of SimCode: time 2.324e-06/0.5333, allocations: 0 / 0.5126 GB, free: 3.996 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03646/0.5698, allocations: 13.16 MB / 0.5254 GB, free: 6.93 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.57, allocations: 153.5 kB / 0.5256 GB, free: 6.738 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.818, allocations: 0 / 0.5256 GB, free: 6.738 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat