Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_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.001068/0.001068, allocations: 93.94 kB / 16.93 MB, free: 5.984 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.001068/0.001068, allocations: 178.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000443/0.000443, allocations: 11.94 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1004, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01351/0.1139, allocations: 12.36 MB / 340.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009982/0.1239, allocations: 5.498 MB / 346.3 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003009/0.127, allocations: 71.62 kB / 346.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00339/0.1304, allocations: 0.8781 MB / 347.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004241/0.1347, allocations: 0.9346 MB / 348.2 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.1371, allocations: 0.6748 MB / 348.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004404/0.1415, allocations: 1.798 MB / 350.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001556/0.1431, allocations: 0.8934 MB / 351.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001475/0.1446, allocations: 0.7896 MB / 352.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.1456, allocations: 0.8279 MB / 353.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.1458, allocations: 96 kB / 353.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002238/0.1461, allocations: 96 kB / 353.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003099/0.1464, allocations: 330.6 kB / 353.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004101/0.1468, allocations: 424.5 kB / 354.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002238/0.149, allocations: 2.427 MB / 356.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.149, allocations: 0 / 356.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1491, allocations: 3.938 kB / 356.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.952e-05/0.1491, allocations: 0 / 356.5 MB, free: 7.785 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.00381/0.1529, allocations: 2.135 MB / 358.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.153, allocations: 8.031 kB / 358.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003413/0.1533, allocations: 270 kB / 358.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003546/0.1537, allocations: 253 kB / 359.2 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.1556, allocations: 1.175 MB / 360.3 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002949/0.1559, allocations: 260.8 kB / 360.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002448/0.1561, allocations: 191.9 kB / 360.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003494/0.1596, allocations: 1.922 MB / 362.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.101e-05/0.1597, allocations: 3.984 kB / 362.7 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001459/0.1598, allocations: 80 kB / 362.8 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.1599, allocations: 47.95 kB / 362.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003602/0.1635, allocations: 1.622 MB / 364.4 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009899/0.1734, allocations: 7.297 MB / 371.7 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002631/0.1761, allocations: 1.249 MB / 373 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.533e-05/0.1761, allocations: 13 kB / 373 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.1762, allocations: 43.55 kB / 373 MB, free: 6.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 2.705e-06/0.1762, allocations: 0 / 373 MB, free: 6.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.2295/0.4057, allocations: 8.807 MB / 381.9 MB, free: 51.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.4058, allocations: 68.22 kB / 381.9 MB, free: 51.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.4081, allocations: 1.22 MB / 383.1 MB, free: 51.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001283/0.4082, allocations: 48.45 kB / 383.2 MB, free: 51.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006871/0.4089, allocations: 0.9936 MB / 384.2 MB, free: 50.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003384/0.4093, allocations: 389.6 kB / 384.6 MB, free: 50.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.799e-05/0.4094, allocations: 30.31 kB / 384.6 MB, free: 50.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4095, allocations: 365.7 kB / 384.9 MB, free: 49.83 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002136/0.4116, allocations: 0.7671 MB / 385.7 MB, free: 49.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002537/0.4142, allocations: 1.225 MB / 386.9 MB, free: 48.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00216/0.4164, allocations: 0.8121 MB / 387.8 MB, free: 48.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/0.4164, allocations: 4.156 kB / 387.8 MB, free: 48.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005594/0.422, allocations: 2.227 MB / 390 MB, free: 47.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00127/0.4233, allocations: 5.838 MB / 395.8 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.231e-05/0.4233, allocations: 14.78 kB / 395.8 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002225/0.4235, allocations: 43.97 kB / 395.9 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00203/0.4256, allocations: 442.6 kB / 396.3 MB, free: 41.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008562/0.4265, allocations: 1.289 MB / 397.6 MB, free: 40.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.4283, allocations: 167.1 kB / 397.8 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.4284, allocations: 68.73 kB / 397.8 MB, free: 40 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.4284, allocations: 4.344 kB / 397.8 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004125/0.4326, allocations: 1.955 MB / 399.8 MB, free: 39.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-05/0.4326, allocations: 15.83 kB / 399.8 MB, free: 39.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-05/0.4327, allocations: 49.27 kB / 399.9 MB, free: 39.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001709/0.4344, allocations: 420.3 kB / 400.3 MB, free: 39.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006803/0.4351, allocations: 1.284 MB / 401.5 MB, free: 37.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.4366, allocations: 143.6 kB / 401.7 MB, free: 37.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.4367, allocations: 72 kB / 401.8 MB, free: 37.79 MB / 318.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.001135/0.4379, allocations: 484.2 kB / 402.2 MB, free: 37.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002598/0.4381, allocations: 161.2 kB / 402.4 MB, free: 37.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/0.4417, allocations: 1.675 MB / 404.1 MB, free: 36.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.4417, allocations: 15.72 kB / 404.1 MB, free: 36.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4417, allocations: 0 / 404.1 MB, free: 36.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.4417, allocations: 7.406 kB / 404.1 MB, free: 36.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006751/0.4485, allocations: 3.906 MB / 408 MB, free: 34.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.4486, allocations: 6.906 kB / 408 MB, free: 34.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.4496, allocations: 287.8 kB / 408.3 MB, free: 34.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-05/0.4497, allocations: 34.39 kB / 408.3 MB, free: 34.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.6e-05/0.4498, allocations: 35.73 kB / 408.3 MB, free: 34.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000658/0.4505, allocations: 1.284 MB / 409.6 MB, free: 33.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/0.4505, allocations: 19.45 kB / 409.7 MB, free: 33.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004118/0.4546, allocations: 2.983 MB / 412.6 MB, free: 29.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005839/0.4552, allocations: 303 kB / 412.9 MB, free: 29.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.4554, allocations: 39.98 kB / 413 MB, free: 29.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008953/0.4563, allocations: 131.9 kB / 413.1 MB, free: 29.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.4565, allocations: 132.2 kB / 413.2 MB, free: 29.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.475e-05/0.4566, allocations: 41.88 kB / 413.3 MB, free: 29.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001174/0.4578, allocations: 0.7986 MB / 414.1 MB, free: 28.51 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4578, allocations: 0 / 414.1 MB, free: 28.51 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00227/0.4601, allocations: 0.6055 MB / 414.7 MB, free: 27.9 MB / 318.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.005023/0.4651, allocations: 6.336 MB / 421 MB, free: 21.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00586/0.471, allocations: 2.928 MB / 423.9 MB, free: 18.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.471, allocations: 4.438 kB / 423.9 MB, free: 18.28 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001505/0.4725, allocations: 0.7537 MB / 424.7 MB, free: 17.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.4742, allocations: 321.1 kB / 425 MB, free: 17.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02304/0.4972, allocations: 21.08 MB / 446.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.4984, allocations: 1.388 MB / 447.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001612/0.5001, allocations: 290.3 kB / 447.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.5011, allocations: 0.7453 MB / 448.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5011, allocations: 0 / 448.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06072/0.5618, allocations: 30.85 MB / 479.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/0.5621, allocations: 236.5 kB / 479.6 MB, free: 9.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.416/2.978, allocations: 0 / 479.6 MB, free: 9.629 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat