Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 93.44 kB / 16.31 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 181.8 kB / 17.21 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 241.2 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002757, allocations: 6.5 kB / 300.9 MB, free: 5.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1075, allocations: 50.43 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01376/0.1213, allocations: 13.29 MB / 364.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.132, allocations: 5.266 MB / 369.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002915/0.135, allocations: 75.62 kB / 370 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002366/0.1373, allocations: 0.7845 MB / 370.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.1393, allocations: 496.2 kB / 371.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.1407, allocations: 479.4 kB / 371.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002757/0.1435, allocations: 2.428 MB / 374.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/0.1448, allocations: 0.8933 MB / 375 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.1461, allocations: 0.7969 MB / 375.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009225/0.147, allocations: 0.8278 MB / 376.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.1472, allocations: 100 kB / 376.7 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002196/0.1474, allocations: 100 kB / 376.8 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002862/0.1477, allocations: 338.4 kB / 377.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003795/0.1481, allocations: 424.5 kB / 377.6 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.1502, allocations: 2.434 MB / 380 MB, free: 14.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1502, allocations: 0 / 380 MB, free: 14.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1502, allocations: 0 / 380 MB, free: 14.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.855e-05/0.1502, allocations: 0 / 380 MB, free: 14.79 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004092/0.1543, allocations: 2.123 MB / 382.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.1544, allocations: 12.03 kB / 382.2 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004118/0.1548, allocations: 270 kB / 382.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000403/0.1552, allocations: 249.1 kB / 382.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/0.1573, allocations: 1.17 MB / 383.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002993/0.1576, allocations: 260.8 kB / 384.1 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002532/0.1578, allocations: 199.8 kB / 384.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003694/0.1615, allocations: 1.938 MB / 386.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.945e-05/0.1616, allocations: 7.984 kB / 386.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.1618, allocations: 80 kB / 386.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.77e-05/0.1618, allocations: 44 kB / 386.4 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003891/0.1657, allocations: 1.618 MB / 388 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/0.1767, allocations: 7.293 MB / 395.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002563/0.1793, allocations: 1.249 MB / 396.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.1803, allocations: 488.2 kB / 397 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.03e-05/0.1804, allocations: 16.94 kB / 397 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.1804, allocations: 47.52 kB / 397.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.565e-06/0.1804, allocations: 0 / 397.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=110): time 0.02865/0.2091, allocations: 8.809 MB / 405.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.2092, allocations: 64.41 kB / 405.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.2108, allocations: 1.224 MB / 407.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.452e-05/0.2109, allocations: 45.7 kB / 407.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006494/0.2116, allocations: 0.986 MB / 408.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002995/0.2119, allocations: 394.4 kB / 408.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.119e-05/0.212, allocations: 28 kB / 408.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2121, allocations: 369.9 kB / 409 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001763/0.2139, allocations: 0.7652 MB / 409.7 MB, free: 300 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002084/0.216, allocations: 1.234 MB / 411 MB, free: 14.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.2178, allocations: 0.8066 MB / 411.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.2179, allocations: 4 kB / 411.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004912/0.2228, allocations: 2.224 MB / 414 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005027/0.2233, allocations: 0.5266 MB / 414.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.701e-05/0.2233, allocations: 16 kB / 414.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002021/0.2236, allocations: 44.84 kB / 414.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.2253, allocations: 435.4 kB / 415 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/0.2263, allocations: 1.295 MB / 416.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.2278, allocations: 164 kB / 416.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.2279, allocations: 64 kB / 416.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.367e-06/0.2279, allocations: 4 kB / 416.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004217/0.2321, allocations: 1.958 MB / 418.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.2322, allocations: 20.09 kB / 418.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001304/0.2323, allocations: 48.8 kB / 418.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.2339, allocations: 415.3 kB / 419 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.2349, allocations: 1.288 MB / 420.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.2364, allocations: 139.9 kB / 420.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.2365, allocations: 64 kB / 420.4 MB, free: 4.832 MB / 350.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.001171/0.2376, allocations: 480.6 kB / 420.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.2379, allocations: 158.1 kB / 421.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.2417, allocations: 1.687 MB / 422.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.2417, allocations: 8 kB / 422.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2417, allocations: 0 / 422.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.2417, allocations: 11.97 kB / 422.8 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2316/0.4733, allocations: 3.903 MB / 426.7 MB, free: 62.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.4734, allocations: 9.906 kB / 426.7 MB, free: 62.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.4744, allocations: 284.9 kB / 427 MB, free: 62.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001001/0.4746, allocations: 37.8 kB / 427 MB, free: 62.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.548e-05/0.4746, allocations: 32.97 kB / 427 MB, free: 62.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006426/0.4753, allocations: 1.275 MB / 428.3 MB, free: 61.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/0.4753, allocations: 14.69 kB / 428.3 MB, free: 61.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00421/0.4795, allocations: 2.369 MB / 430.7 MB, free: 60.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005232/0.4801, allocations: 306.7 kB / 431 MB, free: 60.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.4802, allocations: 34.67 kB / 431 MB, free: 60.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008919/0.4811, allocations: 139.1 kB / 431.2 MB, free: 60.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/0.4814, allocations: 130.6 kB / 431.3 MB, free: 60.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.468e-05/0.4815, allocations: 41.28 kB / 431.3 MB, free: 60.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001442/0.4829, allocations: 0.7936 MB / 432.1 MB, free: 60.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.483, allocations: 0 / 432.1 MB, free: 60.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002184/0.4851, allocations: 0.6093 MB / 432.7 MB, free: 60.77 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.004718/0.4899, allocations: 2.958 MB / 435.7 MB, free: 59.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006838/0.4967, allocations: 2.928 MB / 438.6 MB, free: 59.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/0.4968, allocations: 2.25 kB / 438.6 MB, free: 59.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.4984, allocations: 0.767 MB / 439.4 MB, free: 59.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.501, allocations: 334.9 kB / 439.7 MB, free: 59.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01934/0.5203, allocations: 11.3 MB / 451 MB, free: 52.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000821/0.5212, allocations: 1.343 MB / 452.4 MB, free: 51.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001579/0.5228, allocations: 293 kB / 452.6 MB, free: 51.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008689/0.5237, allocations: 0.7414 MB / 453.4 MB, free: 50.3 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5237, allocations: 0 / 453.4 MB, free: 50.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04914/0.5728, allocations: 30.84 MB / 484.2 MB, free: 19.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.5731, allocations: 245.2 kB / 484.5 MB, free: 19.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.42, allocations: 4.062 kB / 484.5 MB, free: 19.6 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat