Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.00139/0.00139, allocations: 177 kB / 17.56 MB, free: 6.18 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.362/1.362, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003803, allocations: 7.938 kB / 301.4 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1069, allocations: 50.41 MB / 351.8 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01461/0.1215, allocations: 13.13 MB / 365 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009685/0.1312, allocations: 4.94 MB / 369.9 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002623/0.1339, allocations: 59.75 kB / 370 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002905/0.1368, allocations: 0.7615 MB / 370.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002486/0.1393, allocations: 472.6 kB / 371.2 MB, free: 52 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1944/0.3337, allocations: 452.5 kB / 371.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003809/0.3376, allocations: 2.022 MB / 373.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.3392, allocations: 0.9839 MB / 374.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.3404, allocations: 0.6059 MB / 375.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008994/0.3414, allocations: 0.7154 MB / 376 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001821/0.3416, allocations: 92.53 kB / 376.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.3419, allocations: 129.4 kB / 376.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002462/0.3422, allocations: 288.5 kB / 376.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007978/0.343, allocations: 0.8384 MB / 377.3 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002891/0.3459, allocations: 2.559 MB / 379.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3459, allocations: 0 / 379.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3459, allocations: 1.219 kB / 379.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.524e-05/0.346, allocations: 0 / 379.9 MB, free: 9.18 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003161/0.3491, allocations: 1.732 MB / 381.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3492, allocations: 9 kB / 381.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006898/0.3499, allocations: 248.4 kB / 381.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.3514, allocations: 1.016 MB / 382.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.311e-05/0.3515, allocations: 117.1 kB / 383 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/0.3517, allocations: 151.8 kB / 383.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.3542, allocations: 1.445 MB / 384.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.261e-05/0.3542, allocations: 6.031 kB / 384.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.3544, allocations: 61.75 kB / 384.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.423e-05/0.3544, allocations: 37.31 kB / 384.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.3563, allocations: 0.9765 MB / 385.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007094/0.3634, allocations: 6.182 MB / 391.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.3645, allocations: 0.6608 MB / 392.5 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/0.3649, allocations: 250.1 kB / 392.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.3649, allocations: 7.531 kB / 392.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.365, allocations: 41.52 kB / 392.8 MB, free: 1.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.114e-06/0.365, allocations: 0 / 392.8 MB, free: 1.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003072/0.368, allocations: 1.76 MB / 394.5 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.3681, allocations: 83.89 kB / 394.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001496/0.3696, allocations: 1.124 MB / 395.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.3697, allocations: 36.45 kB / 395.8 MB, free: 15.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005598/0.3702, allocations: 0.8082 MB / 396.6 MB, free: 15.12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.3704, allocations: 201.2 kB / 396.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.3706, allocations: 83.92 kB / 396.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3707, allocations: 350.1 kB / 397.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006008/0.3713, allocations: 242.5 kB / 397.5 MB, free: 14.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009702/0.3723, allocations: 0.6371 MB / 398.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.3737, allocations: 0.9364 MB / 399 MB, free: 13.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.3737, allocations: 2.75 kB / 399 MB, free: 13.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001812/0.3756, allocations: 1.023 MB / 400 MB, free: 12.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003217/0.3759, allocations: 484.9 kB / 400.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.3759, allocations: 12.47 kB / 400.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001563/0.3761, allocations: 33.2 kB / 400.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007079/0.3768, allocations: 232.6 kB / 400.8 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.3778, allocations: 1.308 MB / 402.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000857/0.3787, allocations: 50.14 kB / 402.2 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.545e-05/0.3788, allocations: 46.91 kB / 402.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.911e-06/0.3788, allocations: 3.156 kB / 402.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001178/0.38, allocations: 0.8251 MB / 403 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.38, allocations: 12.25 kB / 403 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.057e-05/0.3801, allocations: 38.97 kB / 403.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006059/0.3807, allocations: 216.7 kB / 403.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008127/0.3815, allocations: 1.298 MB / 404.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006005/0.3821, allocations: 34.77 kB / 404.6 MB, free: 8.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.855e-05/0.3822, allocations: 47.28 kB / 404.7 MB, free: 8.812 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (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 (122): * Single equations (assignments): 121 * 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.0006528/0.3828, allocations: 412.2 kB / 405.1 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.383, allocations: 127.7 kB / 405.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.384, allocations: 0.5808 MB / 405.8 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3841, allocations: 6 kB / 405.8 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3841, allocations: 0 / 405.8 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3841, allocations: 3.984 kB / 405.8 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.3872, allocations: 1.887 MB / 407.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.3872, allocations: 3.938 kB / 407.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.3877, allocations: 119.8 kB / 407.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.691e-05/0.3878, allocations: 20.86 kB / 407.8 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/0.3879, allocations: 15.98 kB / 407.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.3889, allocations: 1.272 MB / 409.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.3889, allocations: 4 kB / 409.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.3905, allocations: 0.9422 MB / 410 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000425/0.391, allocations: 247.5 kB / 410.3 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.3911, allocations: 15.98 kB / 410.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005202/0.3916, allocations: 39.98 kB / 410.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.3917, allocations: 44.36 kB / 410.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.3918, allocations: 19.98 kB / 410.4 MB, free: 3.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001168/0.3929, allocations: 0.7557 MB / 411.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3929, allocations: 0 / 411.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001917/0.3949, allocations: 471.9 kB / 411.6 MB, free: 2.125 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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 Backend phase and start with SimCode phase: time 0.0002764/0.3952, allocations: 136.5 kB / 411.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.3975, allocations: 1.266 MB / 413 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.3975, allocations: 4.75 kB / 413 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006132/0.3982, allocations: 357.3 kB / 413.4 MB, free: 340 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.4, allocations: 267.1 kB / 413.6 MB, free: 76 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005492/0.4055, allocations: 3.257 MB / 416.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.4065, allocations: 1.173 MB / 418.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007594/0.4073, allocations: 165.1 kB / 418.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002079/0.4075, allocations: 71.44 kB / 418.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4075, allocations: 0 / 418.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Templates: time 0.02399/0.4315, allocations: 12.39 MB / 430.7 MB, free: 15.08 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches