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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001268/0.001268, allocations: 172.3 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008189/0.0008187, allocations: 94.58 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.274e-05/2.277e-05, allocations: 4 kB / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07996/0.07999, allocations: 47.58 MB / 370 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3135/0.3936, allocations: 117.2 MB / 487.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.3938, allocations: 82.06 kB / 487.3 MB, free: 8.395 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1167/0.5106, allocations: 47.11 MB / 0.5219 GB, free: 10.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5106, allocations: 0 / 0.5219 GB, free: 10.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001242/0.5107, allocations: 47.98 kB / 0.522 GB, free: 10.11 MB / 410.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.003376/0.5141, allocations: 1.93 MB / 0.5239 GB, free: 8.133 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.5142, allocations: 8.031 kB / 0.5239 GB, free: 8.125 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007645/0.5149, allocations: 309 kB / 0.5242 GB, free: 7.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002082/0.517, allocations: 1.257 MB / 0.5254 GB, free: 6.508 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.5173, allocations: 260.8 kB / 0.5256 GB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002518/0.5176, allocations: 195.9 kB / 0.5258 GB, free: 6.043 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.5205, allocations: 1.781 MB / 0.5276 GB, free: 4.207 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.173e-05/0.5206, allocations: 7.938 kB / 0.5276 GB, free: 4.199 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.5207, allocations: 76 kB / 0.5276 GB, free: 4.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/0.5207, allocations: 48 kB / 0.5277 GB, free: 4.078 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00234/0.5231, allocations: 1.365 MB / 0.529 GB, free: 2.711 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2087/0.7318, allocations: 7.463 MB / 0.5363 GB, free: 98.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.7337, allocations: 1.131 MB / 0.5374 GB, free: 98.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005837/0.7343, allocations: 368.5 kB / 0.5378 GB, free: 98.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.048e-05/0.7344, allocations: 13.34 kB / 0.5378 GB, free: 98.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.7344, allocations: 42.53 kB / 0.5378 GB, free: 98.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 3.767e-06/0.7344, allocations: 3.219 kB / 0.5378 GB, free: 98.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.01053/0.745, allocations: 4.63 MB / 0.5423 GB, free: 97.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.745, allocations: 92.25 kB / 0.5424 GB, free: 97.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.7468, allocations: 1.208 MB / 0.5436 GB, free: 97.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.7469, allocations: 47.39 kB / 0.5437 GB, free: 97.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000609/0.7475, allocations: 0.9826 MB / 0.5446 GB, free: 96.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.7479, allocations: 388.6 kB / 0.545 GB, free: 96.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.503e-05/0.748, allocations: 30.09 kB / 0.545 GB, free: 96.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.7481, allocations: 364.8 kB / 0.5454 GB, free: 96.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009416/0.749, allocations: 0.5423 MB / 0.5459 GB, free: 96.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.7501, allocations: 0.978 MB / 0.5469 GB, free: 95.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009745/0.7511, allocations: 0.5882 MB / 0.5474 GB, free: 95.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.7511, allocations: 8.109 kB / 0.5474 GB, free: 95.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002721/0.7539, allocations: 1.684 MB / 0.5491 GB, free: 95.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009082/0.7548, allocations: 5.417 MB / 0.5544 GB, free: 90.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.487e-05/0.7548, allocations: 15.89 kB / 0.5544 GB, free: 90.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.755, allocations: 44.67 kB / 0.5544 GB, free: 90.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001904/0.7569, allocations: 439 kB / 0.5548 GB, free: 90.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008385/0.7578, allocations: 1.293 MB / 0.5561 GB, free: 88.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.7594, allocations: 175.2 kB / 0.5563 GB, free: 88.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.7595, allocations: 63.14 kB / 0.5563 GB, free: 88.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/0.7595, allocations: 4.406 kB / 0.5563 GB, free: 88.88 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002489/0.762, allocations: 1.494 MB / 0.5578 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.7621, allocations: 17.58 kB / 0.5578 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.995e-05/0.7622, allocations: 44.83 kB / 0.5579 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/0.7638, allocations: 413 kB / 0.5583 GB, free: 88.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006036/0.7644, allocations: 1.298 MB / 0.5595 GB, free: 87.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.7658, allocations: 155.8 kB / 0.5597 GB, free: 87.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.7659, allocations: 61.59 kB / 0.5597 GB, free: 87.58 MB / 410.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 () * 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.0002538/0.7661, allocations: 200.8 kB / 0.5599 GB, free: 87.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/0.7664, allocations: 159.6 kB / 0.5601 GB, free: 87.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.7683, allocations: 1.176 MB / 0.5612 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.7683, allocations: 11.66 kB / 0.5612 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.7683, allocations: 4 kB / 0.5612 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.7684, allocations: 5.531 kB / 0.5612 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005228/0.7736, allocations: 3.57 MB / 0.5647 GB, free: 85.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.7736, allocations: 12.31 kB / 0.5647 GB, free: 85.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.7747, allocations: 288.2 kB / 0.565 GB, free: 85.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-05/0.7748, allocations: 36.05 kB / 0.565 GB, free: 85.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.809e-05/0.7749, allocations: 38.66 kB / 0.5651 GB, free: 85.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006044/0.7755, allocations: 1.293 MB / 0.5663 GB, free: 84.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.7755, allocations: 13.28 kB / 0.5664 GB, free: 84.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.7777, allocations: 2.375 MB / 0.5687 GB, free: 82.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004298/0.7781, allocations: 339.1 kB / 0.569 GB, free: 82.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.7783, allocations: 34.75 kB / 0.569 GB, free: 82.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.7794, allocations: 154.5 kB / 0.5692 GB, free: 82.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.7796, allocations: 132.7 kB / 0.5693 GB, free: 82.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.537e-05/0.7797, allocations: 40.66 kB / 0.5693 GB, free: 82.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001033/0.7807, allocations: 0.8986 MB / 0.5702 GB, free: 81.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7807, allocations: 4 kB / 0.5702 GB, free: 81.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001811/0.7826, allocations: 0.6951 MB / 0.5709 GB, free: 81.73 MB / 410.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 () * 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.0004819/0.7831, allocations: 426.9 kB / 0.5713 GB, free: 81.53 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.786, allocations: 2.385 MB / 0.5736 GB, free: 80.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.786, allocations: 8.062 kB / 0.5737 GB, free: 80.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007544/0.7868, allocations: 0.5629 MB / 0.5742 GB, free: 80.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.7881, allocations: 334.5 kB / 0.5745 GB, free: 79.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/0.7922, allocations: 2.783 MB / 0.5772 GB, free: 78.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006686/0.7929, allocations: 1.386 MB / 0.5786 GB, free: 77.73 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001723/0.7946, allocations: 344.9 kB / 0.5789 GB, free: 77.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003326/0.7949, allocations: 93.72 kB / 0.579 GB, free: 77.62 MB / 410.7 MB Notification: Performance of SimCode: time 3.71e-07/0.7949, allocations: 0 / 0.579 GB, free: 77.62 MB / 410.7 MB Notification: Performance of Templates: time 0.03147/0.8264, allocations: 24.03 MB / 0.6025 GB, free: 73.16 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches