Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.6 MB / 244.3 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007337/0.0007334, allocations: 99.33 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001938/0.0001939, allocations: 4 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.201, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01705/0.2181, allocations: 13.42 MB / 420.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.2299, allocations: 5.376 MB / 426.3 MB, free: 9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003105/0.233, allocations: 67.69 kB / 426.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003041/0.2361, allocations: 0.7884 MB / 427.1 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003069/0.2392, allocations: 484.2 kB / 427.6 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002316/0.2416, allocations: 482.2 kB / 428.1 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00442/0.246, allocations: 2.417 MB / 430.5 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002583/0.2486, allocations: 0.8934 MB / 431.4 MB, free: 3.836 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002164/0.2508, allocations: 0.8086 MB / 432.2 MB, free: 3.023 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001836/0.2527, allocations: 0.8239 MB / 433 MB, free: 2.195 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005973/0.2533, allocations: 100 kB / 433.1 MB, free: 2.098 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008151/0.2541, allocations: 96 kB / 433.2 MB, free: 2.004 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005636/0.2547, allocations: 342.3 kB / 433.6 MB, free: 1.668 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008768/0.2556, allocations: 416.6 kB / 434 MB, free: 1.254 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00357/0.2592, allocations: 2.442 MB / 436.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.2592, allocations: 0 / 436.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.2592, allocations: 0 / 436.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.2594, allocations: 4 kB / 436.4 MB, free: 14.8 MB / 314.7 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.007668/0.2671, allocations: 2.116 MB / 438.5 MB, free: 12.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.2671, allocations: 12.03 kB / 438.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009559/0.2681, allocations: 249.1 kB / 438.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003697/0.2718, allocations: 1.182 MB / 440 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005006/0.2724, allocations: 260.8 kB / 440.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005778/0.273, allocations: 191.9 kB / 440.4 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00719/0.2802, allocations: 1.93 MB / 442.3 MB, free: 8.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.999e-05/0.2803, allocations: 7.938 kB / 442.3 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002762/0.2806, allocations: 76 kB / 442.4 MB, free: 8.598 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.174e-05/0.2807, allocations: 48 kB / 442.5 MB, free: 8.551 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007259/0.288, allocations: 1.622 MB / 444.1 MB, free: 6.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01179/0.2998, allocations: 7.289 MB / 451.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/0.3025, allocations: 1.253 MB / 452.6 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.3035, allocations: 482.5 kB / 453.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/0.3036, allocations: 9 kB / 453.1 MB, free: 13.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.3036, allocations: 43.56 kB / 453.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=83): time 2.685e-06/0.3037, allocations: 0 / 453.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=110): time 0.0311/0.3348, allocations: 8.82 MB / 462 MB, free: 4.508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.3348, allocations: 64.41 kB / 462 MB, free: 4.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/0.3367, allocations: 1.224 MB / 463.3 MB, free: 3.199 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.3368, allocations: 45.7 kB / 463.3 MB, free: 3.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006382/0.3375, allocations: 1.001 MB / 464.3 MB, free: 2.133 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003386/0.3378, allocations: 382.5 kB / 464.7 MB, free: 1.754 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-05/0.3379, allocations: 36 kB / 464.7 MB, free: 1.719 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.338, allocations: 361.9 kB / 465.1 MB, free: 1.359 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.3399, allocations: 0.7691 MB / 465.8 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.3421, allocations: 1.226 MB / 467.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001916/0.344, allocations: 0.8105 MB / 467.9 MB, free: 14.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.344, allocations: 7.938 kB / 467.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004688/0.3487, allocations: 2.227 MB / 470.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003804/0.3491, allocations: 0.5155 MB / 470.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/0.3491, allocations: 16 kB / 470.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000156/0.3493, allocations: 48.78 kB / 470.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.351, allocations: 439.4 kB / 471.1 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008885/0.3519, allocations: 1.288 MB / 472.4 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.3533, allocations: 167.9 kB / 472.6 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.3534, allocations: 71.94 kB / 472.6 MB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.3534, allocations: 7.953 kB / 472.6 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003802/0.3572, allocations: 1.958 MB / 474.6 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.3573, allocations: 16 kB / 474.6 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.62e-05/0.3574, allocations: 40.84 kB / 474.7 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001669/0.359, allocations: 415.9 kB / 475.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000818/0.3599, allocations: 1.284 MB / 476.3 MB, free: 5.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3612, allocations: 144 kB / 476.5 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.529e-05/0.3613, allocations: 68 kB / 476.6 MB, free: 5.133 MB / 346.7 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.0009209/0.3622, allocations: 494.2 kB / 477 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.3624, allocations: 150.1 kB / 477.2 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003701/0.3661, allocations: 1.675 MB / 478.9 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3661, allocations: 12 kB / 478.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3662, allocations: 0 / 478.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3662, allocations: 3.984 kB / 478.9 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007008/0.3732, allocations: 3.92 MB / 482.8 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.3732, allocations: 8 kB / 482.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.3744, allocations: 280.5 kB / 483.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001083/0.3746, allocations: 44.73 kB / 483.1 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.032e-05/0.3746, allocations: 32 kB / 483.1 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008194/0.3755, allocations: 1.264 MB / 484.4 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/0.3755, allocations: 15.94 kB / 484.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004405/0.3799, allocations: 2.374 MB / 486.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005502/0.3805, allocations: 303.1 kB / 487.1 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.3806, allocations: 36 kB / 487.1 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009088/0.3815, allocations: 135.9 kB / 487.3 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.3818, allocations: 128.3 kB / 487.4 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/0.3818, allocations: 47.92 kB / 487.4 MB, free: 9.672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001067/0.3829, allocations: 0.7944 MB / 488.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3829, allocations: 0 / 488.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001738/0.3847, allocations: 0.6055 MB / 488.8 MB, free: 8.273 MB / 362.7 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.0002214/0.3849, allocations: 154.9 kB / 489 MB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005841/0.3907, allocations: 2.926 MB / 491.9 MB, free: 5.164 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/0.3908, allocations: 4.938 kB / 491.9 MB, free: 5.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.3924, allocations: 0.7575 MB / 492.7 MB, free: 4.395 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.3941, allocations: 340.4 kB / 493 MB, free: 4.066 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006268/0.4004, allocations: 4.345 MB / 497.4 MB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009165/0.4013, allocations: 1.341 MB / 498.7 MB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004763/0.4018, allocations: 111.4 kB / 498.8 MB, free: 14.07 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.4018, allocations: 0 / 498.8 MB, free: 14.07 MB / 378.7 MB Notification: Performance of Templates: time 0.2151/0.6169, allocations: 30.55 MB / 0.517 GB, free: 82.59 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches