Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.0009821/0.0009822, allocations: 180 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.368/1.368, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008121/0.0008121, allocations: 84.91 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002479/0.0002478, allocations: 7.984 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2337, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.3438, allocations: 94.57 MB / 470.5 MB, free: 2.059 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.3441, allocations: 83.95 kB / 470.6 MB, free: 1.977 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3232/0.6673, allocations: 40.75 MB / 0.4993 GB, free: 92.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.614e-06/0.6674, allocations: 0 / 0.4993 GB, free: 92.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.197e-05/0.6674, allocations: 37.59 kB / 0.4994 GB, free: 92.52 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002951/0.6704, allocations: 1.758 MB / 0.5011 GB, free: 91.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.6705, allocations: 9.156 kB / 0.5011 GB, free: 91.6 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002436/0.6707, allocations: 221 kB / 0.5013 GB, free: 91.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007887/0.6715, allocations: 259.1 kB / 0.5015 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001909/0.6734, allocations: 1.103 MB / 0.5026 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.442e-05/0.6735, allocations: 115.5 kB / 0.5027 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002087/0.6738, allocations: 160.1 kB / 0.5029 GB, free: 91.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.6758, allocations: 1.47 MB / 0.5043 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.353e-05/0.6759, allocations: 7 kB / 0.5043 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.676, allocations: 68.25 kB / 0.5044 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.6761, allocations: 40.19 kB / 0.5044 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.6777, allocations: 0.9819 MB / 0.5054 GB, free: 90.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006697/0.6844, allocations: 6.649 MB / 0.5119 GB, free: 87.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006518/0.6851, allocations: 415.9 kB / 0.5123 GB, free: 87.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.6851, allocations: 8.125 kB / 0.5123 GB, free: 87.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004153/0.6855, allocations: 274.3 kB / 0.5126 GB, free: 87.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.295e-06/0.6855, allocations: 0 / 0.5126 GB, free: 87.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.002661/0.6882, allocations: 1.795 MB / 0.5143 GB, free: 86.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.6883, allocations: 175.1 kB / 0.5145 GB, free: 86.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.6894, allocations: 1.08 MB / 0.5155 GB, free: 85.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.6894, allocations: 37.17 kB / 0.5156 GB, free: 85.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/0.6899, allocations: 0.8636 MB / 0.5164 GB, free: 84.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.69, allocations: 206.4 kB / 0.5166 GB, free: 84.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.69, allocations: 24.91 kB / 0.5166 GB, free: 84.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.06e-05/0.6901, allocations: 348.8 kB / 0.517 GB, free: 84.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003857/0.6905, allocations: 242.2 kB / 0.5172 GB, free: 84.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005817/0.6911, allocations: 0.8095 MB / 0.518 GB, free: 83.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005219/0.6916, allocations: 402.3 kB / 0.5184 GB, free: 83.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.6916, allocations: 14.61 kB / 0.5184 GB, free: 83.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001476/0.6931, allocations: 1.194 MB / 0.5195 GB, free: 82.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.6932, allocations: 37.55 kB / 0.5196 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.6932, allocations: 18.81 kB / 0.5196 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.6934, allocations: 70.38 kB / 0.5197 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/0.6941, allocations: 270.9 kB / 0.5199 GB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.6953, allocations: 2.585 MB / 0.5224 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008054/0.6961, allocations: 78.98 kB / 0.5225 GB, free: 80.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.98e-05/0.6962, allocations: 62.19 kB / 0.5226 GB, free: 80 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004278/0.6966, allocations: 357.8 kB / 0.5229 GB, free: 79.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.6967, allocations: 129.4 kB / 0.523 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008301/0.6976, allocations: 0.5677 MB / 0.5236 GB, free: 79.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.6976, allocations: 6.75 kB / 0.5236 GB, free: 79.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.6976, allocations: 0 / 0.5236 GB, free: 79.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.6976, allocations: 0 / 0.5236 GB, free: 79.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.6996, allocations: 1.859 MB / 0.5254 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.6996, allocations: 3.75 kB / 0.5254 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/0.7, allocations: 108.9 kB / 0.5255 GB, free: 78.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.7002, allocations: 47.52 kB / 0.5256 GB, free: 78.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.7002, allocations: 14.41 kB / 0.5256 GB, free: 78.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.7013, allocations: 2.563 MB / 0.5281 GB, free: 75.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.7013, allocations: 2.062 kB / 0.5281 GB, free: 75.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.7024, allocations: 1.131 MB / 0.5292 GB, free: 74.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.7027, allocations: 257.4 kB / 0.5294 GB, free: 74.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.7028, allocations: 21.89 kB / 0.5295 GB, free: 74.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/0.7033, allocations: 33.48 kB / 0.5295 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.716e-05/0.7034, allocations: 53.42 kB / 0.5295 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.7034, allocations: 25.34 kB / 0.5296 GB, free: 74.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008383/0.7043, allocations: 0.8037 MB / 0.5304 GB, free: 74.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7043, allocations: 0 / 0.5304 GB, free: 74.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009609/0.7052, allocations: 339.5 kB / 0.5307 GB, free: 74.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001743/0.707, allocations: 2.822 MB / 0.5334 GB, free: 71.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.7081, allocations: 0.9302 MB / 0.5343 GB, free: 71.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.7082, allocations: 9.656 kB / 0.5344 GB, free: 71.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000529/0.7087, allocations: 482.4 kB / 0.5348 GB, free: 71.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.7098, allocations: 309.2 kB / 0.5351 GB, free: 70.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.721, allocations: 20.74 MB / 0.5554 GB, free: 52.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/0.7216, allocations: 1.206 MB / 0.5565 GB, free: 51.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006292/0.7222, allocations: 174.6 kB / 0.5567 GB, free: 51.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004992/0.7227, allocations: 0.5846 MB / 0.5573 GB, free: 50.92 MB / 378.7 MB Notification: Performance of SimCode: time 9.91e-07/0.7227, allocations: 0 / 0.5573 GB, free: 50.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04128/0.764, allocations: 28.38 MB / 0.585 GB, free: 24.93 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001269/0.7642, allocations: 234.5 kB / 0.5852 GB, free: 24.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.739/3.503, allocations: 0 / 0.5852 GB, free: 24.68 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat