Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001104/0.001104, allocations: 106.9 kB / 17.75 MB, free: 5.336 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.001096/0.001096, allocations: 198.5 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009508/0.0009508, allocations: 43.94 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2253, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01617/0.2416, allocations: 15.12 MB / 416.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009455/0.2511, allocations: 5.607 MB / 422.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002153/0.2532, allocations: 71.62 kB / 422.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002588/0.2558, allocations: 1.005 MB / 423.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001871/0.2578, allocations: 0.6705 MB / 423.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.2591, allocations: 0.7451 MB / 424.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002611/0.2617, allocations: 2.741 MB / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001551/0.2633, allocations: 1.288 MB / 428.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001378/0.2647, allocations: 1.07 MB / 429.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.2658, allocations: 1.081 MB / 430.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003055/0.2662, allocations: 260 kB / 431.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003429/0.2665, allocations: 264 kB / 431.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004374/0.267, allocations: 0.5255 MB / 431.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000929/0.2679, allocations: 1.158 MB / 433 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002719/0.2706, allocations: 3.153 MB / 436.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2706, allocations: 0 / 436.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2707, allocations: 0 / 436.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.599e-05/0.2707, allocations: 4 kB / 436.2 MB, free: 5.945 MB / 350.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.004195/0.2749, allocations: 2.443 MB / 438.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.275, allocations: 12.03 kB / 438.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003372/0.2753, allocations: 254 kB / 438.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.2772, allocations: 1.249 MB / 440.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002705/0.2775, allocations: 253.4 kB / 440.4 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002443/0.2778, allocations: 200 kB / 440.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003428/0.2812, allocations: 1.923 MB / 442.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.188e-05/0.2813, allocations: 4 kB / 442.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001551/0.2814, allocations: 76 kB / 442.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.25e-05/0.2815, allocations: 51.94 kB / 442.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003404/0.2849, allocations: 1.571 MB / 444.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009073/0.294, allocations: 7.172 MB / 451.4 MB, free: 6.242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002654/0.2967, allocations: 1.21 MB / 452.6 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.2977, allocations: 456.3 kB / 453 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.657e-05/0.2978, allocations: 12.98 kB / 453 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.2978, allocations: 39.56 kB / 453.1 MB, free: 4.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=83): time 2.795e-06/0.2978, allocations: 0 / 453.1 MB, free: 4.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.03256/0.3304, allocations: 7.858 MB / 460.9 MB, free: 12.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.3304, allocations: 68.41 kB / 461 MB, free: 12.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.3322, allocations: 1.232 MB / 462.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.521e-05/0.3323, allocations: 45.7 kB / 462.3 MB, free: 11.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006575/0.333, allocations: 0.9899 MB / 463.3 MB, free: 10.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/0.3333, allocations: 386.5 kB / 463.7 MB, free: 9.699 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004266/0.3337, allocations: 275.2 kB / 463.9 MB, free: 9.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.4e-05/0.3338, allocations: 309.1 kB / 464.2 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.3358, allocations: 0.7309 MB / 465 MB, free: 8.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002211/0.338, allocations: 1.191 MB / 466.1 MB, free: 6.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003837/0.3419, allocations: 1.801 MB / 467.9 MB, free: 4.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.3419, allocations: 4 kB / 468 MB, free: 4.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004841/0.3468, allocations: 2.141 MB / 470.1 MB, free: 2.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3468, allocations: 11.94 kB / 470.1 MB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.3468, allocations: 16 kB / 470.1 MB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.347, allocations: 49.34 kB / 470.2 MB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/0.3488, allocations: 411.4 kB / 470.6 MB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009735/0.3498, allocations: 1.382 MB / 472 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.3513, allocations: 139.9 kB / 472.1 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.3514, allocations: 64 kB / 472.2 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002311/0.3538, allocations: 0.9879 MB / 473.1 MB, free: 15.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002028/0.3558, allocations: 1.146 MB / 474.3 MB, free: 14.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003515/0.3593, allocations: 1.736 MB / 476 MB, free: 12.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.697e-06/0.3593, allocations: 4 kB / 476 MB, free: 12.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004537/0.3639, allocations: 2.063 MB / 478.1 MB, free: 10.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3639, allocations: 12.5 kB / 478.1 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/0.364, allocations: 20 kB / 478.1 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-05/0.3641, allocations: 40.84 kB / 478.2 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/0.3658, allocations: 395.4 kB / 478.5 MB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009253/0.3667, allocations: 1.39 MB / 479.9 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.3681, allocations: 124 kB / 480.1 MB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.3683, allocations: 64 kB / 480.1 MB, free: 8.051 MB / 398.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.0004044/0.3687, allocations: 283.6 kB / 480.4 MB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002773/0.369, allocations: 154 kB / 480.5 MB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004101/0.3731, allocations: 1.585 MB / 482.1 MB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.3731, allocations: 7.969 kB / 482.1 MB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3731, allocations: 4 kB / 482.1 MB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005548/0.3737, allocations: 315 kB / 482.5 MB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.3739, allocations: 20 kB / 482.5 MB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.3751, allocations: 115.8 kB / 482.6 MB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002682/0.3753, allocations: 100.9 kB / 482.7 MB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004829/0.3802, allocations: 1.576 MB / 484.3 MB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0056/0.3858, allocations: 2.392 MB / 486.7 MB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001725/0.3875, allocations: 0.6949 MB / 487.3 MB, free: 0.7227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.3887, allocations: 0.8022 MB / 488.1 MB, free: 15.92 MB / 414.1 MB Notification: Performance of Backend: time 3.51e-07/0.3887, allocations: 0 / 488.1 MB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005626/0.3944, allocations: 2.474 MB / 490.6 MB, free: 13.43 MB / 414.1 MB Notification: Performance of SimCode: time 0.005506/0.3999, allocations: 3.655 MB / 494.3 MB, free: 9.727 MB / 414.1 MB Notification: Performance of Templates: time 0.04586/0.4458, allocations: 28.02 MB / 0.5101 GB, free: 13.91 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches