Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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.001055/0.001056, allocations: 172.2 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.438/1.438, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008275/0.0008276, allocations: 82.66 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.666e-05, allocations: 0 / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09266/0.0927, allocations: 47.56 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3653/0.4581, allocations: 115.3 MB / 485.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.4584, allocations: 85.95 kB / 485.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1002/0.5586, allocations: 39.49 MB / 0.5127 GB, free: 3.672 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5587, allocations: 0 / 0.5127 GB, free: 3.672 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.957e-05/0.5588, allocations: 39.98 kB / 0.5127 GB, free: 3.633 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002579/0.5614, allocations: 1.53 MB / 0.5142 GB, free: 2.051 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.5614, allocations: 12.03 kB / 0.5142 GB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002566/0.5617, allocations: 215.5 kB / 0.5144 GB, free: 1.816 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006779/0.5624, allocations: 241.6 kB / 0.5147 GB, free: 1.578 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00188/0.5643, allocations: 1.063 MB / 0.5157 GB, free: 484 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.507e-05/0.5643, allocations: 111 kB / 0.5158 GB, free: 372 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/0.5646, allocations: 156 kB / 0.516 GB, free: 216 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.5669, allocations: 1.361 MB / 0.5173 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.474e-05/0.567, allocations: 15.83 kB / 0.5173 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.5671, allocations: 64 kB / 0.5174 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.785e-05/0.5671, allocations: 36 kB / 0.5174 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.5687, allocations: 0.8779 MB / 0.5183 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008353/0.5771, allocations: 6.221 MB / 0.5243 GB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.5782, allocations: 0.6332 MB / 0.525 GB, free: 6.582 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/0.5785, allocations: 207.5 kB / 0.5252 GB, free: 6.379 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-05/0.5786, allocations: 8.422 kB / 0.5252 GB, free: 6.371 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.5786, allocations: 39 kB / 0.5252 GB, free: 6.324 MB / 410.7 MB Notification: Performance of pre-optimization done (n=51): time 3.296e-06/0.5786, allocations: 4 kB / 0.5252 GB, free: 6.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.002432/0.5811, allocations: 1.359 MB / 0.5265 GB, free: 4.902 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.5811, allocations: 85.55 kB / 0.5266 GB, free: 4.801 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.5825, allocations: 0.9471 MB / 0.5275 GB, free: 3.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.5825, allocations: 37.7 kB / 0.5276 GB, free: 3.797 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000568/0.5831, allocations: 0.8014 MB / 0.5284 GB, free: 2.984 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.5833, allocations: 209.2 kB / 0.5286 GB, free: 2.777 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-05/0.5833, allocations: 20 kB / 0.5286 GB, free: 2.758 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.5835, allocations: 341.9 kB / 0.5289 GB, free: 2.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.5838, allocations: 202 kB / 0.5291 GB, free: 2.219 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006191/0.5845, allocations: 0.5901 MB / 0.5297 GB, free: 1.441 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004996/0.585, allocations: 311.1 kB / 0.53 GB, free: 1.137 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.585, allocations: 4 kB / 0.53 GB, free: 1.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001409/0.5864, allocations: 0.9362 MB / 0.5309 GB, free: 188 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2293/0.8157, allocations: 5.142 MB / 0.5359 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.979e-05/0.8158, allocations: 13.69 kB / 0.5359 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.816, allocations: 39.31 kB / 0.536 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009419/0.817, allocations: 243.5 kB / 0.5362 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008539/0.8179, allocations: 1.289 MB / 0.5375 GB, free: 99.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009218/0.8188, allocations: 50.28 kB / 0.5375 GB, free: 99.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.852e-05/0.8189, allocations: 47.81 kB / 0.5375 GB, free: 99.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.8189, allocations: 3.219 kB / 0.5376 GB, free: 99.26 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001364/0.8203, allocations: 0.7955 MB / 0.5383 GB, free: 99.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.8203, allocations: 15.94 kB / 0.5383 GB, free: 99.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.922e-05/0.8204, allocations: 38.19 kB / 0.5384 GB, free: 99.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007326/0.8211, allocations: 219.5 kB / 0.5386 GB, free: 99.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006686/0.8218, allocations: 1.291 MB / 0.5398 GB, free: 97.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008274/0.8227, allocations: 40.64 kB / 0.5399 GB, free: 97.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.314e-05/0.8227, allocations: 51.03 kB / 0.5399 GB, free: 97.99 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0002025/0.8229, allocations: 169.7 kB / 0.5401 GB, free: 97.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.8231, allocations: 116.9 kB / 0.5402 GB, free: 97.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.8241, allocations: 0.5072 MB / 0.5407 GB, free: 97.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.8242, allocations: 8.312 kB / 0.5407 GB, free: 97.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.8242, allocations: 5.641 kB / 0.5407 GB, free: 97.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.8242, allocations: 5.094 kB / 0.5407 GB, free: 97.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.827, allocations: 1.778 MB / 0.5425 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.827, allocations: 2.391 kB / 0.5425 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005136/0.8275, allocations: 116.2 kB / 0.5426 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.364e-05/0.8276, allocations: 22.05 kB / 0.5426 GB, free: 97.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.385e-05/0.8277, allocations: 12.84 kB / 0.5426 GB, free: 97.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006421/0.8283, allocations: 1.276 MB / 0.5439 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.8284, allocations: 5.781 kB / 0.5439 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.8296, allocations: 0.9306 MB / 0.5448 GB, free: 95.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000374/0.83, allocations: 240.5 kB / 0.545 GB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.8301, allocations: 16.97 kB / 0.545 GB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004991/0.8306, allocations: 38.97 kB / 0.545 GB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.8307, allocations: 40.7 kB / 0.5451 GB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.521e-05/0.8307, allocations: 16.94 kB / 0.5451 GB, free: 95.76 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001108/0.8319, allocations: 0.7074 MB / 0.5458 GB, free: 95.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8319, allocations: 1.641 kB / 0.5458 GB, free: 95.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001981/0.8338, allocations: 0.5026 MB / 0.5463 GB, free: 95.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.001871/0.8357, allocations: 2.224 MB / 0.5485 GB, free: 94.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.8378, allocations: 1.213 MB / 0.5496 GB, free: 94.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.8378, allocations: 0 / 0.5496 GB, free: 94.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004889/0.8383, allocations: 323.3 kB / 0.55 GB, free: 93.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.8396, allocations: 271.5 kB / 0.5502 GB, free: 93.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004522/0.8441, allocations: 2.094 MB / 0.5523 GB, free: 93.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008314/0.845, allocations: 1.204 MB / 0.5534 GB, free: 92.41 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001111/0.8461, allocations: 203.5 kB / 0.5536 GB, free: 92.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005818/0.8467, allocations: 0.5421 MB / 0.5542 GB, free: 92.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/0.8467, allocations: 3.656 kB / 0.5542 GB, free: 92.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.8933, allocations: 28.51 MB / 0.582 GB, free: 90.23 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.8935, allocations: 209.6 kB / 0.5822 GB, free: 90 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.658/3.552, allocations: 3.906 kB / 0.5822 GB, free: 90 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat