Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",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.001041/0.001041, allocations: 181 kB / 17.01 MB, free: 5.125 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.371/1.371, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008242/0.0008241, allocations: 92.11 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.000231, allocations: 4 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2367, allocations: 47.56 MB / 375.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.3526, allocations: 98.35 MB / 474.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.3529, allocations: 91.95 kB / 474.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07168/0.4246, allocations: 27.59 MB / 0.4902 GB, free: 2.414 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4247, allocations: 0 / 0.4902 GB, free: 2.414 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.047e-05/0.4248, allocations: 28 kB / 0.4902 GB, free: 2.387 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002511/0.4273, allocations: 1.32 MB / 0.4915 GB, free: 1.012 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.4274, allocations: 12.03 kB / 0.4915 GB, free: 1 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002157/0.4276, allocations: 148.1 kB / 0.4916 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006127/0.4282, allocations: 190.3 kB / 0.4918 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1915/0.6197, allocations: 0.8478 MB / 0.4927 GB, free: 95.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.6198, allocations: 72.44 kB / 0.4927 GB, free: 95.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000358/0.6202, allocations: 103.7 kB / 0.4928 GB, free: 95.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.6227, allocations: 0.9327 MB / 0.4937 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.202e-05/0.6227, allocations: 5.094 kB / 0.4937 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-05/0.6228, allocations: 44.75 kB / 0.4938 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.574e-05/0.6229, allocations: 31.75 kB / 0.4938 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.6244, allocations: 0.6197 MB / 0.4944 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006078/0.6305, allocations: 4.152 MB / 0.4985 GB, free: 93.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009698/0.6315, allocations: 380.1 kB / 0.4988 GB, free: 93.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-05/0.6316, allocations: 8.328 kB / 0.4988 GB, free: 93.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.6316, allocations: 34.72 kB / 0.4989 GB, free: 93.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.415e-06/0.6316, allocations: 1.188 kB / 0.4989 GB, free: 93.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002603/0.6342, allocations: 1.304 MB / 0.5002 GB, free: 93.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.6343, allocations: 88.84 kB / 0.5002 GB, free: 93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.6353, allocations: 0.7495 MB / 0.501 GB, free: 92.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.6353, allocations: 33.08 kB / 0.501 GB, free: 92.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003604/0.6357, allocations: 0.5994 MB / 0.5016 GB, free: 92.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.036e-05/0.6358, allocations: 146.2 kB / 0.5017 GB, free: 92.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.467e-05/0.6358, allocations: 14.56 kB / 0.5017 GB, free: 92.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.6359, allocations: 342.2 kB / 0.5021 GB, free: 92.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.6362, allocations: 161.1 kB / 0.5022 GB, free: 92.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004441/0.6367, allocations: 476.5 kB / 0.5027 GB, free: 91.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004122/0.6371, allocations: 241.3 kB / 0.5029 GB, free: 91.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.6371, allocations: 3.719 kB / 0.5029 GB, free: 91.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001193/0.6383, allocations: 0.7351 MB / 0.5036 GB, free: 91.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007506/0.6391, allocations: 4.098 MB / 0.5076 GB, free: 87.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.6391, allocations: 13.09 kB / 0.5076 GB, free: 87.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.6393, allocations: 40 kB / 0.5077 GB, free: 87.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005709/0.6398, allocations: 169.7 kB / 0.5078 GB, free: 87.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007961/0.6407, allocations: 1.299 MB / 0.5091 GB, free: 86.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005616/0.6412, allocations: 29.56 kB / 0.5091 GB, free: 86.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.6413, allocations: 37.22 kB / 0.5092 GB, free: 86.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.101e-06/0.6413, allocations: 7.5 kB / 0.5092 GB, free: 86.17 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000896/0.6422, allocations: 0.6143 MB / 0.5098 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.6422, allocations: 11.31 kB / 0.5098 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.652e-05/0.6423, allocations: 37.67 kB / 0.5098 GB, free: 86.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.6428, allocations: 171.5 kB / 0.51 GB, free: 86.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005861/0.6434, allocations: 1.296 MB / 0.5113 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004286/0.6438, allocations: 32.66 kB / 0.5113 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.6439, allocations: 40.69 kB / 0.5113 GB, free: 84.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0004126/0.6443, allocations: 333.4 kB / 0.5116 GB, free: 84.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.6444, allocations: 91.69 kB / 0.5117 GB, free: 84.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006762/0.6451, allocations: 436.9 kB / 0.5121 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.6451, allocations: 3.906 kB / 0.5121 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.6451, allocations: 0 / 0.5121 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.6451, allocations: 0 / 0.5121 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00161/0.6467, allocations: 1.338 MB / 0.5135 GB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.6467, allocations: 0 / 0.5135 GB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.6471, allocations: 73.5 kB / 0.5135 GB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.565e-05/0.6471, allocations: 24.52 kB / 0.5135 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.6472, allocations: 11.66 kB / 0.5136 GB, free: 83.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005518/0.6477, allocations: 1.273 MB / 0.5148 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.6477, allocations: 7.656 kB / 0.5148 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008565/0.6486, allocations: 0.7806 MB / 0.5156 GB, free: 81.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000208/0.6488, allocations: 208.8 kB / 0.5158 GB, free: 81.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.673e-05/0.6489, allocations: 15.84 kB / 0.5158 GB, free: 81.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.6493, allocations: 17.52 kB / 0.5158 GB, free: 81.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.6493, allocations: 27.05 kB / 0.5158 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.6494, allocations: 15.33 kB / 0.5158 GB, free: 81.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006099/0.65, allocations: 0.5696 MB / 0.5164 GB, free: 81.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.65, allocations: 0 / 0.5164 GB, free: 81.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001129/0.6511, allocations: 386.5 kB / 0.5168 GB, free: 81.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * 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: 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.001375/0.6525, allocations: 1.998 MB / 0.5187 GB, free: 79.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.6538, allocations: 0.9651 MB / 0.5197 GB, free: 79.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.6538, allocations: 4.062 kB / 0.5197 GB, free: 79.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.6541, allocations: 285.9 kB / 0.5199 GB, free: 79.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008658/0.655, allocations: 227.2 kB / 0.5202 GB, free: 79.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007999/0.663, allocations: 12.38 MB / 0.5322 GB, free: 68.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.6635, allocations: 1.056 MB / 0.5333 GB, free: 68.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.664, allocations: 131.5 kB / 0.5334 GB, free: 68.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.6644, allocations: 396 kB / 0.5338 GB, free: 67.74 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6644, allocations: 0 / 0.5338 GB, free: 67.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03612/0.7006, allocations: 20.73 MB / 0.554 GB, free: 56.86 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.7008, allocations: 224.8 kB / 0.5542 GB, free: 56.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.448/3.149, allocations: 0 / 0.5542 GB, free: 56.61 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat