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.001195/0.001195, allocations: 94.83 kB / 16.3 MB, free: 5.996 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.001665/0.001665, allocations: 184 kB / 17.2 MB, free: 5.914 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.421/1.421, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002699, allocations: 3.781 kB / 300.8 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1173, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01468/0.132, allocations: 12.32 MB / 363.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.1436, allocations: 5.443 MB / 369 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003809/0.1474, allocations: 71.62 kB / 369.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003636/0.1511, allocations: 0.8665 MB / 369.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004627/0.1558, allocations: 0.9424 MB / 370.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002668/0.1585, allocations: 0.6709 MB / 371.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00471/0.1632, allocations: 1.79 MB / 373.3 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.1647, allocations: 0.8856 MB / 374.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.1661, allocations: 0.7896 MB / 375 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.1671, allocations: 0.824 MB / 375.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001856/0.1673, allocations: 96 kB / 375.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.1676, allocations: 96 kB / 376 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003049/0.1679, allocations: 334.5 kB / 376.3 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004365/0.1683, allocations: 424.5 kB / 376.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00204/0.1704, allocations: 2.419 MB / 379.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1704, allocations: 4 kB / 379.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1704, allocations: 0 / 379.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.231e-05/0.1705, allocations: 4 kB / 379.2 MB, free: 15.51 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.004035/0.1745, allocations: 2.119 MB / 381.3 MB, free: 13.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.1746, allocations: 12.03 kB / 381.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003717/0.175, allocations: 262 kB / 381.6 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003727/0.1753, allocations: 249.1 kB / 381.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.1774, allocations: 1.175 MB / 383 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002763/0.1777, allocations: 260.8 kB / 383.2 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002319/0.1779, allocations: 195.8 kB / 383.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00337/0.1813, allocations: 1.915 MB / 385.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.365e-05/0.1814, allocations: 11.91 kB / 385.4 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/0.1815, allocations: 76 kB / 385.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.624e-05/0.1816, allocations: 48 kB / 385.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003552/0.1851, allocations: 1.622 MB / 387.1 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01036/0.1955, allocations: 7.278 MB / 394.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.1981, allocations: 1.261 MB / 395.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.129e-05/0.1982, allocations: 13 kB / 395.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.1983, allocations: 39.56 kB / 395.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.985e-06/0.1983, allocations: 4 kB / 395.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=110): time 0.03152/0.2298, allocations: 8.817 MB / 404.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.2299, allocations: 64.41 kB / 404.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/0.2318, allocations: 1.212 MB / 405.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.649e-05/0.2319, allocations: 45.7 kB / 405.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006781/0.2326, allocations: 0.9977 MB / 406.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003151/0.2329, allocations: 386.4 kB / 407.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.28e-05/0.233, allocations: 32 kB / 407.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2332, allocations: 361.9 kB / 407.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001916/0.2351, allocations: 0.7691 MB / 408.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002455/0.2376, allocations: 1.23 MB / 409.6 MB, free: 100 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00197/0.2396, allocations: 0.8144 MB / 410.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.2396, allocations: 4 kB / 410.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004939/0.2445, allocations: 2.219 MB / 412.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002338/0.2469, allocations: 5.838 MB / 418.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.56e-05/0.2469, allocations: 15.98 kB / 418.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.2472, allocations: 40.86 kB / 418.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/0.249, allocations: 439.4 kB / 419 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000978/0.25, allocations: 1.288 MB / 420.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.2516, allocations: 172 kB / 420.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.2518, allocations: 67.94 kB / 420.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.2518, allocations: 4 kB / 420.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004254/0.2561, allocations: 1.958 MB / 422.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.883e-05/0.2561, allocations: 20.09 kB / 422.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001122/0.2562, allocations: 44.84 kB / 422.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.2579, allocations: 415.4 kB / 422.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009773/0.2589, allocations: 1.288 MB / 424.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.2604, allocations: 136.1 kB / 424.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.2605, allocations: 64 kB / 424.4 MB, free: 0.6055 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.001021/0.2616, allocations: 492.5 kB / 424.9 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2108/0.4724, allocations: 161.2 kB / 425 MB, free: 64.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004198/0.4767, allocations: 1.67 MB / 426.7 MB, free: 63.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.4767, allocations: 13.3 kB / 426.7 MB, free: 63.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4767, allocations: 0 / 426.7 MB, free: 63.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.4767, allocations: 5.156 kB / 426.7 MB, free: 63.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007643/0.4844, allocations: 3.907 MB / 430.6 MB, free: 63.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.4844, allocations: 9.656 kB / 430.6 MB, free: 63.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.4857, allocations: 277 kB / 430.9 MB, free: 63.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/0.4858, allocations: 35.5 kB / 430.9 MB, free: 63.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.241e-05/0.4859, allocations: 32.5 kB / 431 MB, free: 63.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007154/0.4866, allocations: 1.281 MB / 432.3 MB, free: 61.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-05/0.4867, allocations: 16.47 kB / 432.3 MB, free: 61.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005306/0.492, allocations: 2.977 MB / 435.2 MB, free: 60.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007314/0.4927, allocations: 299.2 kB / 435.5 MB, free: 60.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.4929, allocations: 39.22 kB / 435.6 MB, free: 60.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009876/0.4939, allocations: 133.9 kB / 435.7 MB, free: 60.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/0.4942, allocations: 131.8 kB / 435.8 MB, free: 60.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.909e-05/0.4943, allocations: 40.88 kB / 435.9 MB, free: 60.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001353/0.4957, allocations: 0.7892 MB / 436.7 MB, free: 60.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4957, allocations: 0 / 436.7 MB, free: 60.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002307/0.498, allocations: 0.6096 MB / 437.3 MB, free: 60.14 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.005269/0.5033, allocations: 6.353 MB / 443.6 MB, free: 55.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00597/0.5093, allocations: 2.933 MB / 446.6 MB, free: 55.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.537e-05/0.5093, allocations: 3.875 kB / 446.6 MB, free: 55.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001701/0.511, allocations: 0.7482 MB / 447.3 MB, free: 54.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.5128, allocations: 319.5 kB / 447.6 MB, free: 54.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02172/0.5346, allocations: 21.04 MB / 468.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007107/0.5353, allocations: 1.382 MB / 470 MB, free: 33.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001553/0.5369, allocations: 289.4 kB / 470.3 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007787/0.5377, allocations: 0.7414 MB / 471.1 MB, free: 32.49 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.5377, allocations: 0 / 471.1 MB, free: 32.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04654/0.5842, allocations: 30.75 MB / 0.4901 GB, free: 2.121 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001326/0.5844, allocations: 230 kB / 0.4903 GB, free: 1.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.669/3.253, allocations: 0 / 0.4903 GB, free: 1.887 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