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.001136/0.001136, allocations: 98.2 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000225/0.000225, allocations: 8 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.11, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01452/0.1246, allocations: 13.45 MB / 371.8 MB, free: 256 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2002/0.3248, allocations: 5.384 MB / 377.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002196/0.3271, allocations: 72.12 kB / 377.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002079/0.3292, allocations: 0.7859 MB / 378 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001411/0.3306, allocations: 488.2 kB / 378.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.3319, allocations: 476.9 kB / 378.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002706/0.3346, allocations: 2.391 MB / 381.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001336/0.3359, allocations: 0.8764 MB / 382.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.3375, allocations: 0.7973 MB / 383 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009687/0.3384, allocations: 0.8192 MB / 383.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.3386, allocations: 96.38 kB / 383.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.3389, allocations: 101.1 kB / 384 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003276/0.3392, allocations: 333 kB / 384.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.3396, allocations: 419.3 kB / 384.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002367/0.342, allocations: 2.394 MB / 387.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.342, allocations: 0 / 387.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.342, allocations: 0 / 387.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.604e-05/0.3421, allocations: 0 / 387.2 MB, free: 7.121 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.003785/0.3458, allocations: 2.106 MB / 389.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.3459, allocations: 8.938 kB / 389.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003103/0.3462, allocations: 267.2 kB / 389.5 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004086/0.3466, allocations: 260.4 kB / 389.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001733/0.3484, allocations: 1.158 MB / 390.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.3487, allocations: 259.8 kB / 391.2 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.3489, allocations: 189.4 kB / 391.4 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003428/0.3523, allocations: 1.923 MB / 393.3 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.595e-05/0.3524, allocations: 6.219 kB / 393.3 MB, free: 3.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.3525, allocations: 77.47 kB / 393.4 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.691e-05/0.3526, allocations: 44.5 kB / 393.4 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003356/0.356, allocations: 1.605 MB / 395 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01073/0.3667, allocations: 7.216 MB / 402.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002845/0.3696, allocations: 1.252 MB / 403.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.3707, allocations: 488.1 kB / 404 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.726e-05/0.3708, allocations: 11.89 kB / 404 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.225e-05/0.3708, allocations: 46.42 kB / 404 MB, free: 11.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 3.266e-06/0.3708, allocations: 0 / 404 MB, free: 11.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.02944/0.4003, allocations: 8.8 MB / 412.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.4004, allocations: 68.41 kB / 412.9 MB, free: 3.887 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/0.4022, allocations: 1.22 MB / 414.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001109/0.4023, allocations: 45.7 kB / 414.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007078/0.403, allocations: 0.9797 MB / 415.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003385/0.4033, allocations: 386.6 kB / 415.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.101e-05/0.4034, allocations: 32 kB / 415.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.4036, allocations: 369.8 kB / 415.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001762/0.4054, allocations: 0.7691 MB / 416.7 MB, free: 76 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.4074, allocations: 1.221 MB / 417.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/0.4092, allocations: 0.8144 MB / 418.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/0.4093, allocations: 4 kB / 418.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004678/0.414, allocations: 2.219 MB / 420.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003619/0.4143, allocations: 0.524 MB / 421.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.4144, allocations: 16 kB / 421.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.4145, allocations: 40.84 kB / 421.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/0.4162, allocations: 447.3 kB / 422 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.4175, allocations: 1.28 MB / 423.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.4191, allocations: 167.9 kB / 423.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.4193, allocations: 67.98 kB / 423.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.4193, allocations: 7.953 kB / 423.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004105/0.4234, allocations: 1.954 MB / 425.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.771e-05/0.4234, allocations: 20.48 kB / 425.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001146/0.4236, allocations: 48.84 kB / 425.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.4251, allocations: 415.4 kB / 425.9 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.4261, allocations: 1.286 MB / 427.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.4276, allocations: 136 kB / 427.3 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.4277, allocations: 67.98 kB / 427.4 MB, free: 4.637 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.001478/0.4292, allocations: 488.6 kB / 427.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003134/0.4295, allocations: 158 kB / 428 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003893/0.4334, allocations: 1.679 MB / 429.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.4335, allocations: 12 kB / 429.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.4335, allocations: 4 kB / 429.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.4335, allocations: 7.969 kB / 429.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007655/0.4412, allocations: 3.885 MB / 433.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.77e-05/0.4412, allocations: 8.219 kB / 433.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.4423, allocations: 283.6 kB / 433.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001054/0.4424, allocations: 40.73 kB / 433.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-05/0.4425, allocations: 32 kB / 434 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009231/0.4434, allocations: 1.272 MB / 435.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/0.4435, allocations: 15.94 kB / 435.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004397/0.4479, allocations: 2.379 MB / 437.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007045/0.4486, allocations: 303 kB / 437.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.4488, allocations: 35.97 kB / 438 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008974/0.4497, allocations: 135.9 kB / 438.1 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002357/0.4499, allocations: 132.2 kB / 438.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.634e-05/0.45, allocations: 36 kB / 438.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00124/0.4512, allocations: 0.7903 MB / 439 MB, free: 8.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4512, allocations: 4 kB / 439.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001959/0.4532, allocations: 0.6054 MB / 439.7 MB, free: 7.824 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.004552/0.4578, allocations: 2.959 MB / 442.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005954/0.4637, allocations: 2.928 MB / 445.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/0.4638, allocations: 0 / 445.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.4654, allocations: 0.751 MB / 446.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/0.4675, allocations: 331.2 kB / 446.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/0.4895, allocations: 11.23 MB / 457.8 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.4907, allocations: 1.341 MB / 459.2 MB, free: 3.262 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00179/0.4925, allocations: 292.2 kB / 459.5 MB, free: 2.973 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/0.4936, allocations: 0.7336 MB / 460.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4936, allocations: 0 / 460.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07436/0.568, allocations: 30.65 MB / 490.9 MB, free: 3.93 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.5683, allocations: 243.4 kB / 491.1 MB, free: 3.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.825/3.393, allocations: 0 / 491.1 MB, free: 3.691 MB / 398.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