Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 176.4 kB / 8.346 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.42/1.42, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.0009621/0.0009621, allocations: 99.2 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.171e-05/2.194e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1183, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.4777, allocations: 95.25 MB / 482.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.478, allocations: 79.95 kB / 482.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1169/0.5949, allocations: 44.12 MB / 0.5147 GB, free: 2.926 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.595, allocations: 448 / 0.5147 GB, free: 2.926 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.711e-05/0.5951, allocations: 36 kB / 0.5147 GB, free: 2.891 MB / 394.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.003237/0.5983, allocations: 1.608 MB / 0.5163 GB, free: 1.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.5984, allocations: 8.031 kB / 0.5163 GB, free: 1.223 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009792/0.5994, allocations: 285.5 kB / 0.5165 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.6017, allocations: 1.201 MB / 0.5177 GB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.782e-05/0.6017, allocations: 52 kB / 0.5178 GB, free: 15.63 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/0.6019, allocations: 95.75 kB / 0.5179 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001713/0.6036, allocations: 0.877 MB / 0.5187 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/0.6058, allocations: 1.209 MB / 0.5199 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.614e-05/0.6058, allocations: 7.906 kB / 0.5199 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.275e-05/0.6059, allocations: 3.984 kB / 0.5199 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.606, allocations: 40 kB / 0.5199 GB, free: 13.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008225/0.6142, allocations: 6.105 MB / 0.5259 GB, free: 6.941 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.6154, allocations: 0.5444 MB / 0.5264 GB, free: 6.383 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006983/0.6161, allocations: 399 kB / 0.5268 GB, free: 5.992 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.988e-05/0.6162, allocations: 8.703 kB / 0.5268 GB, free: 5.984 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.6163, allocations: 43.11 kB / 0.5269 GB, free: 5.934 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.595e-06/0.6163, allocations: 0 / 0.5269 GB, free: 5.934 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.003143/0.6194, allocations: 1.67 MB / 0.5285 GB, free: 4.203 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.861e-05/0.6195, allocations: 107.6 kB / 0.5286 GB, free: 4.074 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/0.6209, allocations: 0.9014 MB / 0.5295 GB, free: 3.164 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.6209, allocations: 25.7 kB / 0.5295 GB, free: 3.133 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006371/0.6215, allocations: 0.8636 MB / 0.5304 GB, free: 2.258 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.6218, allocations: 256.2 kB / 0.5306 GB, free: 2.004 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.6218, allocations: 3.938 kB / 0.5306 GB, free: 2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.622, allocations: 349.9 kB / 0.5309 GB, free: 1.652 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.6224, allocations: 226.6 kB / 0.5312 GB, free: 1.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007196/0.6231, allocations: 0.6695 MB / 0.5318 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005505/0.6236, allocations: 348.2 kB / 0.5321 GB, free: 212 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.6237, allocations: 8 kB / 0.5321 GB, free: 204 kB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001838/0.6255, allocations: 1.06 MB / 0.5332 GB, free: 15.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.6255, allocations: 12 kB / 0.5332 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.6256, allocations: 16.59 kB / 0.5332 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003908/0.626, allocations: 118.5 kB / 0.5333 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008503/0.6268, allocations: 263.5 kB / 0.5336 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003091/0.6299, allocations: 4.061 MB / 0.5375 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.631, allocations: 43.94 kB / 0.5376 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.431e-05/0.6311, allocations: 56 kB / 0.5376 GB, free: 10.2 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 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.0002426/0.6313, allocations: 148.7 kB / 0.5378 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001258/0.6326, allocations: 0.6925 MB / 0.5385 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.6328, allocations: 130.5 kB / 0.5386 GB, free: 9.207 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.6341, allocations: 0.7107 MB / 0.5393 GB, free: 8.473 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.6341, allocations: 8 kB / 0.5393 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.6342, allocations: 0 / 0.5393 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.6342, allocations: 0 / 0.5393 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.6374, allocations: 2.021 MB / 0.5413 GB, free: 6.348 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.6374, allocations: 480 / 0.5413 GB, free: 6.348 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005813/0.638, allocations: 139.8 kB / 0.5414 GB, free: 6.211 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003251/0.6384, allocations: 106.5 kB / 0.5415 GB, free: 6.098 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.028e-05/0.6384, allocations: 16 kB / 0.5415 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003308/0.6417, allocations: 4.155 MB / 0.5456 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/0.6418, allocations: 7.953 kB / 0.5456 GB, free: 1.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.6437, allocations: 1.355 MB / 0.5469 GB, free: 84 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2127/0.8565, allocations: 257.1 kB / 0.5471 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001743/0.8567, allocations: 10.92 kB / 0.5471 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006818/0.8574, allocations: 32.12 kB / 0.5472 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.8576, allocations: 63.09 kB / 0.5472 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.828e-05/0.8576, allocations: 24.48 kB / 0.5473 GB, free: 110.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00127/0.8589, allocations: 0.6617 MB / 0.5479 GB, free: 110.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8589, allocations: 0 / 0.5479 GB, free: 110.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001576/0.8605, allocations: 304.7 kB / 0.5482 GB, free: 110.8 MB / 426.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.00281/0.8633, allocations: 3.133 MB / 0.5513 GB, free: 108.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.8648, allocations: 0.9832 MB / 0.5522 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.8648, allocations: 1.125 kB / 0.5522 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007976/0.8656, allocations: 0.6371 MB / 0.5528 GB, free: 108.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/0.8671, allocations: 298.1 kB / 0.5531 GB, free: 108.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005384/0.8725, allocations: 2.462 MB / 0.5555 GB, free: 107.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008181/0.8734, allocations: 1.25 MB / 0.5567 GB, free: 106.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008076/0.8742, allocations: 159.5 kB / 0.5569 GB, free: 106.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006868/0.8749, allocations: 0.6147 MB / 0.5575 GB, free: 106.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/0.8749, allocations: 0 / 0.5575 GB, free: 106.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08271/0.9576, allocations: 26.53 MB / 0.5834 GB, free: 105 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/0.9579, allocations: 155.5 kB / 0.5836 GB, free: 104.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.75/3.708, allocations: 0 / 0.5836 GB, free: 104.8 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat