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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 109.3 kB / 18.35 MB, free: 4.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 190.9 kB / 19.29 MB, free: 3.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 47.92 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0707/0.07189, allocations: 46.64 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01511/0.08703, allocations: 15.16 MB / 343.9 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007942/0.09499, allocations: 5.685 MB / 349.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.09611, allocations: 71.62 kB / 349.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001989/0.09813, allocations: 0.9665 MB / 350.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.09933, allocations: 0.6237 MB / 351.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.1004, allocations: 0.7451 MB / 352 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002216/0.1027, allocations: 2.753 MB / 354.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001511/0.1042, allocations: 1.292 MB / 356 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.1052, allocations: 1.039 MB / 357.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.1063, allocations: 1.065 MB / 358.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002933/0.1066, allocations: 264 kB / 358.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003442/0.1069, allocations: 260 kB / 358.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003869/0.1073, allocations: 0.5372 MB / 359.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008952/0.1082, allocations: 1.158 MB / 360.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002421/0.1106, allocations: 3.149 MB / 363.5 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1107, allocations: 0 / 363.5 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1107, allocations: 0 / 363.5 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.134e-05/0.1107, allocations: 0 / 363.5 MB, free: 0.7852 MB / 302.1 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.004045/0.1148, allocations: 2.462 MB / 366 MB, free: 14.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.1148, allocations: 8.031 kB / 366 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.1151, allocations: 250 kB / 366.2 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.117, allocations: 1.268 MB / 367.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002632/0.1173, allocations: 257.3 kB / 367.7 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002417/0.1176, allocations: 200 kB / 367.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003253/0.1208, allocations: 1.915 MB / 369.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.265e-05/0.1209, allocations: 15.78 kB / 369.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000142/0.121, allocations: 80 kB / 369.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.242e-05/0.1211, allocations: 44 kB / 370 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003276/0.1243, allocations: 1.575 MB / 371.5 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00872/0.1331, allocations: 7.157 MB / 378.7 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1229/0.256, allocations: 1.204 MB / 379.9 MB, free: 52.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.2572, allocations: 458.2 kB / 380.4 MB, free: 52.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.309e-05/0.2573, allocations: 14.09 kB / 380.4 MB, free: 52.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.2573, allocations: 43.3 kB / 380.4 MB, free: 52.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 2.805e-06/0.2573, allocations: 1.688 kB / 380.4 MB, free: 52.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.03016/0.2875, allocations: 7.869 MB / 388.3 MB, free: 50.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/0.2876, allocations: 62.75 kB / 388.3 MB, free: 50.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001452/0.289, allocations: 1.241 MB / 389.6 MB, free: 50.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.199e-05/0.2891, allocations: 44.88 kB / 389.6 MB, free: 50.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004415/0.2895, allocations: 0.9921 MB / 390.6 MB, free: 49.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.2898, allocations: 389 kB / 391 MB, free: 49.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/0.2902, allocations: 272.6 kB / 391.3 MB, free: 48.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.316e-05/0.2902, allocations: 308.9 kB / 391.6 MB, free: 48.56 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/0.2919, allocations: 0.7299 MB / 392.3 MB, free: 48.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/0.2938, allocations: 1.19 MB / 393.5 MB, free: 47.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.2972, allocations: 1.802 MB / 395.3 MB, free: 46.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.2972, allocations: 3.875 kB / 395.3 MB, free: 46.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004152/0.3014, allocations: 2.14 MB / 397.4 MB, free: 45.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3014, allocations: 15.75 kB / 397.5 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.3014, allocations: 20.22 kB / 397.5 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001277/0.3016, allocations: 44.47 kB / 397.5 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.3032, allocations: 410.3 kB / 397.9 MB, free: 44.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006325/0.3039, allocations: 1.374 MB / 399.3 MB, free: 43.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.3052, allocations: 146.9 kB / 399.4 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.3053, allocations: 68.41 kB / 399.5 MB, free: 43.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001977/0.3073, allocations: 0.9872 MB / 400.5 MB, free: 42.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001568/0.3088, allocations: 1.156 MB / 401.6 MB, free: 41.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002816/0.3117, allocations: 1.736 MB / 403.4 MB, free: 40.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.38e-06/0.3117, allocations: 4 kB / 403.4 MB, free: 40.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.00357/0.3153, allocations: 2.063 MB / 405.4 MB, free: 38.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.3153, allocations: 12 kB / 405.5 MB, free: 38.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3153, allocations: 12 kB / 405.5 MB, free: 38.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.453e-05/0.3154, allocations: 40.84 kB / 405.5 MB, free: 38.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.3169, allocations: 395.4 kB / 405.9 MB, free: 37.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005332/0.3174, allocations: 1.39 MB / 407.3 MB, free: 36.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.3186, allocations: 119.9 kB / 407.4 MB, free: 36.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.435e-05/0.3187, allocations: 68 kB / 407.5 MB, free: 36.19 MB / 318.1 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.noWphase,kinematicPTP.moving[1],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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002558/0.3189, allocations: 279.5 kB / 407.7 MB, free: 35.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.3191, allocations: 162.1 kB / 407.9 MB, free: 35.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003348/0.3225, allocations: 1.578 MB / 409.5 MB, free: 34.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3225, allocations: 7.969 kB / 409.5 MB, free: 34.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3225, allocations: 0 / 409.5 MB, free: 34.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003651/0.3229, allocations: 315 kB / 409.8 MB, free: 33.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/0.3231, allocations: 27.98 kB / 409.8 MB, free: 33.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009845/0.324, allocations: 118.5 kB / 409.9 MB, free: 33.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.3243, allocations: 104.9 kB / 410 MB, free: 33.55 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004123/0.3284, allocations: 1.567 MB / 411.6 MB, free: 32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004775/0.3332, allocations: 2.393 MB / 414 MB, free: 29.58 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001441/0.3347, allocations: 0.6909 MB / 414.7 MB, free: 28.89 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009285/0.3356, allocations: 0.8103 MB / 415.5 MB, free: 28.08 MB / 318.1 MB Notification: Performance of Backend: time 7.21e-07/0.3356, allocations: 0 / 415.5 MB, free: 28.08 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004757/0.3404, allocations: 2.472 MB / 418 MB, free: 25.59 MB / 318.1 MB Notification: Performance of SimCode: time 0.004384/0.3448, allocations: 3.662 MB / 421.6 MB, free: 21.9 MB / 318.1 MB Notification: Performance of Templates: time 0.03731/0.3821, allocations: 27.61 MB / 449.2 MB, free: 10.29 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches