Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.007091/0.007095, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.596/3.596, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001969/0.001969, allocations: 98.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000626/0.0006267, allocations: 8 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.1754, allocations: 47.59 MB / 374.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.03399/0.2095, allocations: 12.35 MB / 386.9 MB, free: 3.023 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4074/0.617, allocations: 5.483 MB / 392.4 MB, free: 9.188 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004557/0.6216, allocations: 75.25 kB / 392.5 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007189/0.6289, allocations: 0.8677 MB / 393.3 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00783/0.6368, allocations: 0.9396 MB / 394.3 MB, free: 9.172 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0055/0.6424, allocations: 0.6703 MB / 394.9 MB, free: 9.168 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008333/0.6507, allocations: 1.799 MB / 396.7 MB, free: 9.164 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004111/0.6549, allocations: 0.8902 MB / 397.6 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003608/0.6586, allocations: 0.7924 MB / 398.4 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003548/0.6623, allocations: 0.8219 MB / 399.2 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001252/0.6636, allocations: 100.3 kB / 399.3 MB, free: 8.746 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.6654, allocations: 96.12 kB / 399.4 MB, free: 8.746 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001344/0.6668, allocations: 336 kB / 399.8 MB, free: 8.672 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/0.6688, allocations: 421.7 kB / 400.2 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006993/0.6759, allocations: 2.424 MB / 402.6 MB, free: 8.023 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.676, allocations: 0 / 402.6 MB, free: 8.023 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.849e-06/0.676, allocations: 5.375 kB / 402.6 MB, free: 8.02 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001703/0.6762, allocations: 0 / 402.6 MB, free: 8.02 MB / 282.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.01106/0.6872, allocations: 2.131 MB / 404.7 MB, free: 6.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.846e-05/0.6873, allocations: 9.156 kB / 404.7 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.6891, allocations: 249.8 kB / 405 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.6993, allocations: 1.182 MB / 406.2 MB, free: 5.906 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007327/0.7001, allocations: 265.1 kB / 406.4 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.7012, allocations: 189.1 kB / 406.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01996/0.7212, allocations: 1.924 MB / 408.5 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001505/0.7214, allocations: 6.688 kB / 408.5 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004781/0.7262, allocations: 79.81 kB / 408.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/0.7264, allocations: 45.16 kB / 408.7 MB, free: 5.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01999/0.7464, allocations: 1.625 MB / 410.3 MB, free: 4.668 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0357/0.7822, allocations: 7.286 MB / 417.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008063/0.7904, allocations: 1.256 MB / 418.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002241/0.7906, allocations: 15.48 kB / 418.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.911e-05/0.7907, allocations: 46.19 kB / 418.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=83): time 6.763e-06/0.7908, allocations: 0 / 418.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=110): time 0.0959/0.8867, allocations: 8.814 MB / 427.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.456e-05/0.8868, allocations: 68.39 kB / 427.8 MB, free: 6.422 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00551/0.8924, allocations: 1.221 MB / 429 MB, free: 5.191 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000513/0.893, allocations: 45.7 kB / 429 MB, free: 5.141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002502/0.8955, allocations: 0.9647 MB / 430 MB, free: 4.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001362/0.897, allocations: 395.7 kB / 430.4 MB, free: 3.789 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003744/0.8974, allocations: 28 kB / 430.4 MB, free: 3.762 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0004762/0.8979, allocations: 370.8 kB / 430.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006597/0.9046, allocations: 0.7691 MB / 431.6 MB, free: 2.621 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007549/0.9122, allocations: 1.227 MB / 432.8 MB, free: 1.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007295/0.9196, allocations: 0.8089 MB / 433.6 MB, free: 396 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.2e-05/0.9197, allocations: 8 kB / 433.6 MB, free: 388 kB / 298.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.01729/0.937, allocations: 2.13 MB / 435.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004665/0.9417, allocations: 5.747 MB / 441.5 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.5e-05/0.9419, allocations: 16 kB / 441.5 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004312/0.9424, allocations: 44.84 kB / 441.5 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01128/0.9537, allocations: 435.4 kB / 442 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/0.9567, allocations: 1.295 MB / 443.3 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01367/0.9705, allocations: 172 kB / 443.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008283/0.9714, allocations: 64 kB / 443.5 MB, free: 5.883 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.9715, allocations: 4 kB / 443.5 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03278/1.004, allocations: 1.958 MB / 445.4 MB, free: 3.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.265e-05/1.004, allocations: 16.09 kB / 445.5 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002807/1.005, allocations: 44.84 kB / 445.5 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009688/1.014, allocations: 415.4 kB / 445.9 MB, free: 3.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002916/1.017, allocations: 1.288 MB / 447.2 MB, free: 2.004 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007998/1.026, allocations: 147.9 kB / 447.3 MB, free: 1.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005468/1.026, allocations: 64 kB / 447.4 MB, free: 1.797 MB / 314.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.00264/1.029, allocations: 488.6 kB / 447.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007768/1.03, allocations: 154 kB / 448 MB, free: 1.156 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02496/1.055, allocations: 1.678 MB / 449.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.411e-05/1.055, allocations: 16 kB / 449.7 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/1.055, allocations: 3.953 kB / 449.7 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.997e-05/1.055, allocations: 7.969 kB / 449.7 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02796/1.083, allocations: 3.904 MB / 453.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.102e-05/1.083, allocations: 12 kB / 453.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003923/1.087, allocations: 283.7 kB / 453.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003264/1.087, allocations: 32.84 kB / 454 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004249/1.088, allocations: 36 kB / 454 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/1.09, allocations: 1.282 MB / 455.3 MB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.703e-05/1.09, allocations: 15.94 kB / 455.3 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01558/1.106, allocations: 2.978 MB / 458.3 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/1.108, allocations: 311 kB / 458.6 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008431/1.108, allocations: 32 kB / 458.6 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003823/1.112, allocations: 139.9 kB / 458.7 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008331/1.113, allocations: 124.2 kB / 458.9 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002795/1.114, allocations: 43.98 kB / 458.9 MB, free: 5.441 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003768/1.117, allocations: 0.798 MB / 459.7 MB, free: 4.648 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.502e-06/1.117, allocations: 0 / 459.7 MB, free: 4.648 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00943/1.127, allocations: 0.6132 MB / 460.3 MB, free: 4.035 MB / 330.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.0008019/1.128, allocations: 159.4 kB / 460.5 MB, free: 3.871 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.02765/1.155, allocations: 2.927 MB / 463.4 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-05/1.156, allocations: 4 kB / 463.4 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009276/1.165, allocations: 0.7577 MB / 464.2 MB, free: 156 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004557/1.169, allocations: 323.8 kB / 464.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03596/1.205, allocations: 4.343 MB / 468.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007489/1.213, allocations: 1.387 MB / 470.2 MB, free: 9.914 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/1.215, allocations: 111.4 kB / 470.3 MB, free: 9.805 MB / 346.7 MB Notification: Performance of SimCode: time 3.156e-06/1.215, allocations: 0 / 470.3 MB, free: 9.805 MB / 346.7 MB Notification: Performance of Templates: time 0.2154/1.43, allocations: 29.49 MB / 499.8 MB, free: 12.25 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches