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/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_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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001027, allocations: 202.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.2 MB / 245 MB, free: 5.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000851/0.000851, allocations: 93.72 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002222/0.0002222, allocations: 8 kB / 357.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1855, allocations: 51.48 MB / 409.4 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2692/0.4547, allocations: 119.8 MB / 0.5169 GB, free: 95.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.455, allocations: 91.25 kB / 0.5169 GB, free: 95.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09966/0.5547, allocations: 47.05 MB / 0.5629 GB, free: 48.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5547, allocations: 4 kB / 0.5629 GB, free: 48.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001324/0.5548, allocations: 51.98 kB / 0.5629 GB, free: 48.73 MB / 378.7 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.004138/0.559, allocations: 2.162 MB / 0.5651 GB, free: 46.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.559, allocations: 8.031 kB / 0.5651 GB, free: 46.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009156/0.56, allocations: 297 kB / 0.5653 GB, free: 46.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002259/0.5622, allocations: 1.249 MB / 0.5666 GB, free: 44.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.5625, allocations: 264.7 kB / 0.5668 GB, free: 44.63 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000259/0.5628, allocations: 199.8 kB / 0.567 GB, free: 44.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003231/0.566, allocations: 1.901 MB / 0.5689 GB, free: 42.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.496e-05/0.5661, allocations: 11.98 kB / 0.5689 GB, free: 42.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.5662, allocations: 76 kB / 0.569 GB, free: 42.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.504e-05/0.5662, allocations: 48 kB / 0.569 GB, free: 42.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003064/0.5693, allocations: 1.637 MB / 0.5706 GB, free: 40.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007931/0.5773, allocations: 7.37 MB / 0.5778 GB, free: 33.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/0.5794, allocations: 1.308 MB / 0.5791 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.342e-05/0.5794, allocations: 12.98 kB / 0.5791 GB, free: 31.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.5795, allocations: 47.5 kB / 0.5791 GB, free: 31.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 1.984e-06/0.5795, allocations: 4 kB / 0.5791 GB, free: 31.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.02846/0.6079, allocations: 8.817 MB / 0.5877 GB, free: 22.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.608, allocations: 98.05 kB / 0.5878 GB, free: 22.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.6095, allocations: 1.206 MB / 0.589 GB, free: 21.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.081e-05/0.6096, allocations: 45.7 kB / 0.5891 GB, free: 21.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004265/0.6101, allocations: 0.9669 MB / 0.59 GB, free: 20.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.6103, allocations: 390.4 kB / 0.5904 GB, free: 19.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.991e-05/0.6104, allocations: 32 kB / 0.5904 GB, free: 19.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.975e-05/0.6105, allocations: 365.9 kB / 0.5908 GB, free: 19.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.612, allocations: 0.7808 MB / 0.5915 GB, free: 18.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001711/0.6137, allocations: 1.231 MB / 0.5927 GB, free: 17.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.6154, allocations: 0.8183 MB / 0.5935 GB, free: 16.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.6154, allocations: 8 kB / 0.5935 GB, free: 16.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003919/0.6194, allocations: 2.159 MB / 0.5956 GB, free: 14.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008371/0.6202, allocations: 5.405 MB / 0.6009 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.6202, allocations: 16 kB / 0.6009 GB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001454/0.6204, allocations: 40.86 kB / 0.601 GB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.622, allocations: 439.3 kB / 0.6014 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006752/0.6227, allocations: 1.307 MB / 0.6027 GB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.6242, allocations: 172 kB / 0.6028 GB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.6243, allocations: 68 kB / 0.6029 GB, free: 6.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.739e-06/0.6243, allocations: 4 kB / 0.6029 GB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003335/0.6276, allocations: 1.875 MB / 0.6047 GB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.6277, allocations: 12 kB / 0.6047 GB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.539e-05/0.6278, allocations: 57.2 kB / 0.6048 GB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.6293, allocations: 411.4 kB / 0.6052 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005533/0.6298, allocations: 1.299 MB / 0.6065 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.6311, allocations: 144.1 kB / 0.6066 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.6313, allocations: 64 kB / 0.6067 GB, free: 2.402 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,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 (194): * Single equations (assignments): 193 * 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.0007319/0.632, allocations: 476.5 kB / 0.6071 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/0.6322, allocations: 158 kB / 0.6073 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/0.6355, allocations: 1.639 MB / 0.6089 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.6355, allocations: 12 kB / 0.6089 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.6355, allocations: 4 kB / 0.6089 GB, free: 96 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.6355, allocations: 3.984 kB / 0.6089 GB, free: 92 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007308/0.6429, allocations: 3.954 MB / 0.6127 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.6429, allocations: 15.94 kB / 0.6128 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.644, allocations: 283.9 kB / 0.613 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.6442, allocations: 36.84 kB / 0.6131 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-05/0.6442, allocations: 40 kB / 0.6131 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008811/0.6451, allocations: 1.296 MB / 0.6144 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.188e-05/0.6452, allocations: 23.95 kB / 0.6144 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004659/0.6498, allocations: 2.961 MB / 0.6173 GB, free: 6.715 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005928/0.6504, allocations: 338.9 kB / 0.6176 GB, free: 6.363 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002075/0.6506, allocations: 35.98 kB / 0.6176 GB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.6517, allocations: 147.9 kB / 0.6178 GB, free: 6.184 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.6519, allocations: 140.1 kB / 0.6179 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.669e-05/0.652, allocations: 40 kB / 0.6179 GB, free: 6.004 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001241/0.6533, allocations: 0.9044 MB / 0.6188 GB, free: 5.102 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6533, allocations: 4 kB / 0.6188 GB, free: 5.098 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002068/0.6554, allocations: 0.6835 MB / 0.6195 GB, free: 4.414 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.0006027/0.656, allocations: 435.6 kB / 0.6199 GB, free: 3.996 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005772/0.6617, allocations: 2.969 MB / 0.6228 GB, free: 1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6618, allocations: 0 / 0.6228 GB, free: 1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.6633, allocations: 0.7774 MB / 0.6236 GB, free: 216 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.6646, allocations: 330 kB / 0.6239 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005977/0.6706, allocations: 4.275 MB / 0.6281 GB, free: 11.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009478/0.6716, allocations: 1.372 MB / 0.6294 GB, free: 10.06 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001416/0.673, allocations: 288.7 kB / 0.6297 GB, free: 9.773 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003974/0.6734, allocations: 107.4 kB / 0.6298 GB, free: 9.668 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.6734, allocations: 0 / 0.6298 GB, free: 9.668 MB / 410.7 MB Notification: Performance of Templates: time 0.03282/0.7062, allocations: 21.37 MB / 0.6506 GB, free: 4.426 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches