Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.001259, allocations: 95.77 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001462, allocations: 205.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003953/0.000395, allocations: 7.984 kB / 306.7 MB, free: 1.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1486, allocations: 51.5 MB / 358.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01668/0.1654, allocations: 12.47 MB / 370.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2525/0.4179, allocations: 5.543 MB / 376.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003392/0.4214, allocations: 69.03 kB / 376.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003837/0.4252, allocations: 0.8773 MB / 377.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004197/0.4295, allocations: 0.9389 MB / 378.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002752/0.4322, allocations: 0.6974 MB / 378.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004311/0.4365, allocations: 1.773 MB / 380.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.4381, allocations: 0.883 MB / 381.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.44, allocations: 0.7836 MB / 382.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.4411, allocations: 0.8135 MB / 383.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002022/0.4413, allocations: 95.34 kB / 383.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000295/0.4416, allocations: 95.69 kB / 383.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003503/0.442, allocations: 330.5 kB / 383.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003751/0.4424, allocations: 411.4 kB / 384 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002344/0.4447, allocations: 2.378 MB / 386.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.4447, allocations: 2.297 kB / 386.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4448, allocations: 1 kB / 386.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.066e-05/0.4448, allocations: 4 kB / 386.4 MB, free: 8.449 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.003809/0.4486, allocations: 2.104 MB / 388.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.4487, allocations: 9.625 kB / 388.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002988/0.449, allocations: 261.8 kB / 388.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003897/0.4494, allocations: 247 kB / 389 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001844/0.4512, allocations: 1.157 MB / 390.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003294/0.4516, allocations: 263.7 kB / 390.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002951/0.4519, allocations: 193.4 kB / 390.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003662/0.4555, allocations: 1.899 MB / 392.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.679e-05/0.4556, allocations: 11.09 kB / 392.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.4557, allocations: 80.91 kB / 392.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.665e-05/0.4558, allocations: 44.81 kB / 392.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003641/0.4594, allocations: 1.613 MB / 394.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01148/0.471, allocations: 7.177 MB / 401.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00288/0.4739, allocations: 1.267 MB / 402.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.364e-05/0.474, allocations: 13.42 kB / 402.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.474, allocations: 40.97 kB / 402.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 3.016e-06/0.474, allocations: 0 / 402.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.03345/0.5075, allocations: 8.809 MB / 411.5 MB, free: 5.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.5076, allocations: 72.39 kB / 411.6 MB, free: 5.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002524/0.5101, allocations: 1.204 MB / 412.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.5103, allocations: 41.7 kB / 412.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007673/0.511, allocations: 0.984 MB / 413.8 MB, free: 3.617 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004104/0.5115, allocations: 387.1 kB / 414.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.5116, allocations: 36 kB / 414.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.5118, allocations: 357.9 kB / 414.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001988/0.5138, allocations: 0.7691 MB / 415.4 MB, free: 2.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002368/0.5162, allocations: 1.224 MB / 416.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/0.5182, allocations: 0.8066 MB / 417.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.5183, allocations: 4 kB / 417.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005036/0.5233, allocations: 2.223 MB / 419.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002821/0.5261, allocations: 5.833 MB / 425.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.5262, allocations: 12 kB / 425.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.5264, allocations: 40.86 kB / 425.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/0.5284, allocations: 439.3 kB / 425.9 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.5298, allocations: 1.291 MB / 427.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.5316, allocations: 176 kB / 427.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.5317, allocations: 64 kB / 427.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.5318, allocations: 4 kB / 427.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004247/0.536, allocations: 1.95 MB / 429.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.5361, allocations: 16.5 kB / 429.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001136/0.5362, allocations: 48.84 kB / 429.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/0.5378, allocations: 415.4 kB / 429.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009142/0.5388, allocations: 1.292 MB / 431.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.5403, allocations: 138.4 kB / 431.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.5405, allocations: 67.98 kB / 431.4 MB, free: 1.176 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.moving[1],kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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.0011/0.5416, allocations: 492 kB / 431.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.5418, allocations: 154 kB / 432 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004009/0.5458, allocations: 1.676 MB / 433.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.5459, allocations: 19.94 kB / 433.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5459, allocations: 0 / 433.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.5459, allocations: 7.938 kB / 433.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007429/0.5533, allocations: 3.894 MB / 437.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.5534, allocations: 12.03 kB / 437.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.5546, allocations: 279.6 kB / 437.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001012/0.5547, allocations: 32.84 kB / 437.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.307e-05/0.5548, allocations: 32 kB / 437.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009419/0.5557, allocations: 1.28 MB / 439.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.5557, allocations: 15.94 kB / 439.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005063/0.5608, allocations: 2.975 MB / 442.2 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007129/0.5615, allocations: 307 kB / 442.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.5617, allocations: 35.98 kB / 442.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009587/0.5627, allocations: 127.9 kB / 442.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002357/0.5629, allocations: 140.2 kB / 442.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.856e-05/0.563, allocations: 40 kB / 442.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.5643, allocations: 0.7825 MB / 443.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5643, allocations: 4 kB / 443.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002115/0.5665, allocations: 0.6016 MB / 444.2 MB, free: 3.453 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.005949/0.5724, allocations: 6.343 MB / 450.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00622/0.5787, allocations: 2.925 MB / 453.5 MB, free: 9.836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/0.5787, allocations: 4 kB / 453.5 MB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.5804, allocations: 0.7429 MB / 454.3 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/0.5822, allocations: 320.7 kB / 454.6 MB, free: 8.766 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02662/0.6088, allocations: 20.95 MB / 475.5 MB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.6099, allocations: 1.38 MB / 476.9 MB, free: 1.516 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001654/0.6115, allocations: 300.2 kB / 477.2 MB, free: 1.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009653/0.6125, allocations: 0.7297 MB / 477.9 MB, free: 500 kB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6125, allocations: 0 / 477.9 MB, free: 500 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05332/0.6659, allocations: 30.54 MB / 0.4965 GB, free: 2.281 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/0.6661, allocations: 239.9 kB / 0.4968 GB, free: 2.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.91/3.576, allocations: 0 / 0.4968 GB, free: 2.039 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat