Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.001452/0.001452, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.421/1.421, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0009423/0.0009421, allocations: 82.7 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.727e-05/2.761e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.08904, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.33/0.4191, allocations: 94.75 MB / 464.9 MB, free: 14.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.4194, allocations: 81.33 kB / 465 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1184/0.5379, allocations: 44.72 MB / 0.4977 GB, free: 2.918 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5379, allocations: 0 / 0.4977 GB, free: 2.918 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00014/0.538, allocations: 36 kB / 0.4978 GB, free: 2.883 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004118/0.5422, allocations: 1.609 MB / 0.4993 GB, free: 1.223 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.5422, allocations: 8.031 kB / 0.4993 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000688/0.5429, allocations: 219.9 kB / 0.4995 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/0.5443, allocations: 285.8 kB / 0.4998 GB, free: 0.707 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003063/0.5474, allocations: 1.208 MB / 0.501 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.5475, allocations: 115.1 kB / 0.5011 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003258/0.5479, allocations: 155.9 kB / 0.5013 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003015/0.5509, allocations: 1.43 MB / 0.5027 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.091e-05/0.551, allocations: 11.83 kB / 0.5027 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.5511, allocations: 68 kB / 0.5027 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.484e-05/0.5512, allocations: 40 kB / 0.5028 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.5531, allocations: 0.9636 MB / 0.5037 GB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008497/0.5616, allocations: 6.412 MB / 0.51 GB, free: 5.875 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.5629, allocations: 0.5608 MB / 0.5105 GB, free: 5.301 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007513/0.5636, allocations: 419 kB / 0.5109 GB, free: 4.887 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.229e-05/0.5637, allocations: 16.66 kB / 0.5109 GB, free: 4.871 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.5637, allocations: 39.11 kB / 0.511 GB, free: 4.824 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.497e-06/0.5637, allocations: 4 kB / 0.511 GB, free: 4.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.003458/0.5672, allocations: 1.787 MB / 0.5127 GB, free: 2.969 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.911e-05/0.5673, allocations: 111.6 kB / 0.5128 GB, free: 2.836 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001497/0.5688, allocations: 1.094 MB / 0.5139 GB, free: 1.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.5689, allocations: 37.7 kB / 0.5139 GB, free: 1.688 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005654/0.5694, allocations: 0.8607 MB / 0.5148 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.5696, allocations: 264.3 kB / 0.515 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.515e-05/0.5697, allocations: 24 kB / 0.515 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.5698, allocations: 353.9 kB / 0.5154 GB, free: 184 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004244/0.5702, allocations: 254.7 kB / 0.5156 GB, free: 15.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006729/0.5709, allocations: 0.6993 MB / 0.5163 GB, free: 15.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005775/0.5715, allocations: 373.9 kB / 0.5167 GB, free: 14.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.5715, allocations: 4 kB / 0.5167 GB, free: 14.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001987/0.5735, allocations: 1.212 MB / 0.5179 GB, free: 13.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.5736, allocations: 12.09 kB / 0.5179 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.5736, allocations: 16 kB / 0.5179 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004294/0.574, allocations: 118.5 kB / 0.518 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008578/0.5749, allocations: 271.5 kB / 0.5183 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00334/0.5782, allocations: 4.219 MB / 0.5224 GB, free: 8.379 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009642/0.5792, allocations: 55.98 kB / 0.5224 GB, free: 8.324 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.5793, allocations: 55.98 kB / 0.5225 GB, free: 8.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.5795, allocations: 184.6 kB / 0.5227 GB, free: 8.082 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.5797, allocations: 142.2 kB / 0.5228 GB, free: 7.941 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.5813, allocations: 0.7896 MB / 0.5236 GB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.5813, allocations: 8 kB / 0.5236 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.5813, allocations: 0 / 0.5236 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.5813, allocations: 7.984 kB / 0.5236 GB, free: 7.105 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00356/0.5849, allocations: 2.257 MB / 0.5258 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.5849, allocations: 4.031 kB / 0.5258 GB, free: 4.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005555/0.5855, allocations: 135.8 kB / 0.5259 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003761/0.5859, allocations: 122.5 kB / 0.526 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.374e-05/0.5859, allocations: 16 kB / 0.5261 GB, free: 4.453 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2214/0.8073, allocations: 4.317 MB / 0.5303 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.8074, allocations: 6.797 kB / 0.5303 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.8097, allocations: 1.434 MB / 0.5317 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004987/0.8102, allocations: 278.3 kB / 0.5319 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.8104, allocations: 22.45 kB / 0.532 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006248/0.811, allocations: 47.05 kB / 0.532 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.8112, allocations: 66.86 kB / 0.5321 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.455e-05/0.8112, allocations: 21.88 kB / 0.5321 GB, free: 105 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001234/0.8125, allocations: 0.8153 MB / 0.5329 GB, free: 104.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8125, allocations: 2.812 kB / 0.5329 GB, free: 104.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001337/0.8138, allocations: 377.2 kB / 0.5332 GB, free: 104.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002567/0.8164, allocations: 3.251 MB / 0.5364 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.8179, allocations: 1.057 MB / 0.5375 GB, free: 102.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.818, allocations: 1.125 kB / 0.5375 GB, free: 102.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007717/0.8187, allocations: 0.6772 MB / 0.5381 GB, free: 102.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.8202, allocations: 336.1 kB / 0.5384 GB, free: 102.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005747/0.826, allocations: 2.548 MB / 0.5409 GB, free: 101.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.827, allocations: 1.246 MB / 0.5421 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008951/0.8279, allocations: 179 kB / 0.5423 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007085/0.8286, allocations: 0.6208 MB / 0.5429 GB, free: 100.6 MB / 410.7 MB Notification: Performance of SimCode: time 9.01e-07/0.8286, allocations: 0 / 0.5429 GB, free: 100.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05586/0.8845, allocations: 32.58 MB / 0.5747 GB, free: 97.32 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/0.8847, allocations: 205.1 kB / 0.5749 GB, free: 97.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.854/3.739, allocations: 0 / 0.5749 GB, free: 97.1 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat