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.001161/0.001161, allocations: 178.2 kB / 16.41 MB, free: 5.707 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.637/1.637, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007642/0.0007644, allocations: 93.05 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003475, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3106, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01475/0.3254, allocations: 13.34 MB / 387.9 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.338, allocations: 5.331 MB / 393.2 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005161/0.3433, allocations: 71.62 kB / 393.3 MB, free: 30.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003542/0.3469, allocations: 0.7845 MB / 394.1 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003462/0.3504, allocations: 0.4885 MB / 394.6 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002079/0.3525, allocations: 475.4 kB / 395 MB, free: 28.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003902/0.3564, allocations: 2.422 MB / 397.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.3582, allocations: 0.9022 MB / 398.4 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.3599, allocations: 0.7853 MB / 399.1 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008556/0.3608, allocations: 0.8395 MB / 400 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.361, allocations: 100 kB / 400.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002183/0.3612, allocations: 96 kB / 400.2 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.3615, allocations: 342.4 kB / 400.5 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004218/0.3619, allocations: 424.5 kB / 400.9 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001734/0.3637, allocations: 2.446 MB / 403.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.3637, allocations: 0 / 403.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.3637, allocations: 0 / 403.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.273e-05/0.3637, allocations: 0 / 403.4 MB, free: 19.91 MB / 298.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.00386/0.3676, allocations: 2.139 MB / 405.5 MB, free: 17.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.3677, allocations: 15.97 kB / 405.5 MB, free: 17.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000367/0.368, allocations: 257 kB / 405.8 MB, free: 17.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.3698, allocations: 1.171 MB / 406.9 MB, free: 16.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.3701, allocations: 264.8 kB / 407.2 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002193/0.3703, allocations: 187.9 kB / 407.4 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003454/0.3738, allocations: 1.938 MB / 409.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.471e-05/0.3739, allocations: 7.906 kB / 409.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/0.374, allocations: 76 kB / 409.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.818e-05/0.3741, allocations: 48 kB / 409.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003322/0.3774, allocations: 1.626 MB / 411.1 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009044/0.3864, allocations: 7.294 MB / 418.4 MB, free: 4.387 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.3889, allocations: 1.245 MB / 419.6 MB, free: 3.062 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009444/0.3899, allocations: 488.2 kB / 420.1 MB, free: 2.586 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.518e-05/0.3899, allocations: 9 kB / 420.1 MB, free: 2.578 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.39, allocations: 55.5 kB / 420.2 MB, free: 2.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=83): time 3.577e-06/0.39, allocations: 3.938 kB / 420.2 MB, free: 2.512 MB / 298.7 MB Notification: Performance of matching and sorting (n=110): time 0.03243/0.4224, allocations: 8.813 MB / 429 MB, free: 9.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.4225, allocations: 68.39 kB / 429 MB, free: 9.492 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002219/0.4248, allocations: 1.232 MB / 430.3 MB, free: 8.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001684/0.425, allocations: 45.7 kB / 430.3 MB, free: 8.199 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008558/0.4258, allocations: 0.9939 MB / 431.3 MB, free: 7.191 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004392/0.4263, allocations: 394.3 kB / 431.7 MB, free: 6.801 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.4264, allocations: 32 kB / 431.7 MB, free: 6.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.4266, allocations: 365.9 kB / 432.1 MB, free: 6.406 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002088/0.4287, allocations: 0.7691 MB / 432.9 MB, free: 5.637 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002376/0.4311, allocations: 1.234 MB / 434.1 MB, free: 4.203 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0022/0.4333, allocations: 0.8066 MB / 434.9 MB, free: 3.395 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-05/0.4333, allocations: 8 kB / 434.9 MB, free: 3.387 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005847/0.4392, allocations: 2.22 MB / 437.1 MB, free: 1.137 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005502/0.4398, allocations: 0.5189 MB / 437.6 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.378e-05/0.4398, allocations: 16 kB / 437.7 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002005/0.44, allocations: 44.84 kB / 437.7 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.4419, allocations: 443.4 kB / 438.1 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.4431, allocations: 1.284 MB / 439.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.4449, allocations: 171.9 kB / 439.6 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001746/0.4451, allocations: 64 kB / 439.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.4451, allocations: 4 kB / 439.7 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004556/0.4497, allocations: 1.954 MB / 441.6 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.69e-05/0.4497, allocations: 16 kB / 441.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/0.4499, allocations: 44.84 kB / 441.7 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.4516, allocations: 423.4 kB / 442.1 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.4526, allocations: 1.28 MB / 443.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.4543, allocations: 147.9 kB / 443.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/0.4544, allocations: 64 kB / 443.6 MB, free: 10.19 MB / 330.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.001074/0.4555, allocations: 483 kB / 444 MB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003948/0.4559, allocations: 158 kB / 444.2 MB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004336/0.4602, allocations: 1.679 MB / 445.9 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/0.4603, allocations: 19.98 kB / 445.9 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.4603, allocations: 3.953 kB / 445.9 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.4603, allocations: 3.984 kB / 445.9 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008463/0.4688, allocations: 3.917 MB / 449.8 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-05/0.4689, allocations: 8 kB / 449.8 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.4701, allocations: 287.7 kB / 450.1 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.4703, allocations: 32.86 kB / 450.1 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.222e-05/0.4704, allocations: 35.98 kB / 450.2 MB, free: 3.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009903/0.4714, allocations: 1.276 MB / 451.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.274e-05/0.4714, allocations: 15.94 kB / 451.5 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005006/0.4764, allocations: 2.367 MB / 453.8 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007225/0.4772, allocations: 303 kB / 454.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003416/0.4775, allocations: 39.98 kB / 454.2 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.4787, allocations: 127.9 kB / 454.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002539/0.479, allocations: 140.1 kB / 454.4 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.03e-05/0.4791, allocations: 40 kB / 454.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001536/0.4806, allocations: 0.7986 MB / 455.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4806, allocations: 0 / 455.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002592/0.4832, allocations: 0.6094 MB / 455.9 MB, free: 13.3 MB / 346.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.0002742/0.4835, allocations: 146.8 kB / 456 MB, free: 13.15 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006755/0.4903, allocations: 2.934 MB / 459 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/0.4903, allocations: 7.938 kB / 459 MB, free: 10.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.4921, allocations: 0.7507 MB / 459.7 MB, free: 9.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.4945, allocations: 345.1 kB / 460 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007963/0.5025, allocations: 4.354 MB / 464.4 MB, free: 4.566 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00154/0.5041, allocations: 1.349 MB / 465.8 MB, free: 3.188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006543/0.5047, allocations: 111.4 kB / 465.9 MB, free: 3.078 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5047, allocations: 3.938 kB / 465.9 MB, free: 3.074 MB / 346.7 MB Notification: Performance of Templates: time 0.04911/0.5539, allocations: 30.69 MB / 496.6 MB, free: 4.34 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/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_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches