Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002722/0.002727, allocations: 182.8 kB / 16.4 MB, free: 5.75 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.577/3.577, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001751/0.001751, allocations: 95.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006759/0.0006761, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5279/0.5286, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.02457/0.5533, allocations: 11.35 MB / 385.9 MB, free: 36.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01663/0.57, allocations: 4.988 MB / 390.9 MB, free: 32.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004629/0.5747, allocations: 59.75 kB / 390.9 MB, free: 32.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005619/0.5804, allocations: 0.82 MB / 391.7 MB, free: 31.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006768/0.5872, allocations: 0.8528 MB / 392.6 MB, free: 30.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003845/0.5912, allocations: 0.51 MB / 393.1 MB, free: 30.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006199/0.5974, allocations: 1.461 MB / 394.6 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002718/0.6002, allocations: 0.7572 MB / 395.3 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001857/0.6022, allocations: 0.5796 MB / 395.9 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002435/0.6047, allocations: 0.6764 MB / 396.6 MB, free: 26.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005185/0.61, allocations: 91.94 kB / 396.7 MB, free: 26.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/0.6118, allocations: 136 kB / 396.8 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006553/0.6125, allocations: 270.9 kB / 397.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00533/0.6179, allocations: 356.8 kB / 397.4 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004572/0.6225, allocations: 2.162 MB / 399.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.6226, allocations: 0 / 399.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.118e-06/0.6227, allocations: 0 / 399.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001012/0.6228, allocations: 0 / 399.6 MB, free: 23.7 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.006645/0.6294, allocations: 1.759 MB / 401.3 MB, free: 21.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.493e-05/0.6295, allocations: 8.031 kB / 401.3 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/0.6315, allocations: 249.5 kB / 401.6 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004137/0.6357, allocations: 1.004 MB / 402.6 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.6359, allocations: 115 kB / 402.7 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000491/0.6365, allocations: 155.9 kB / 402.9 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006449/0.6429, allocations: 1.411 MB / 404.3 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/0.6431, allocations: 0 / 404.3 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002626/0.6434, allocations: 67.98 kB / 404.3 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.965e-05/0.6435, allocations: 36 kB / 404.4 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004728/0.6482, allocations: 0.9634 MB / 405.3 MB, free: 17.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01836/0.6666, allocations: 6.164 MB / 411.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002235/0.6689, allocations: 0.6525 MB / 412.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.292e-05/0.6691, allocations: 8.5 kB / 412.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.6691, allocations: 46.98 kB / 412.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=51): time 5.511e-06/0.6692, allocations: 0 / 412.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.007011/0.6762, allocations: 1.754 MB / 414 MB, free: 8.727 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.6763, allocations: 89.48 kB / 414 MB, free: 8.621 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003611/0.68, allocations: 1.104 MB / 415.2 MB, free: 7.504 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001568/0.6802, allocations: 37.7 kB / 415.2 MB, free: 7.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009195/0.6811, allocations: 0.7959 MB / 416 MB, free: 6.656 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003576/0.6816, allocations: 197.2 kB / 416.2 MB, free: 6.461 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.434e-05/0.6817, allocations: 20 kB / 416.2 MB, free: 6.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6818, allocations: 346.8 kB / 416.5 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.683, allocations: 245.9 kB / 416.8 MB, free: 5.855 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.6846, allocations: 0.6329 MB / 417.4 MB, free: 5.043 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.6864, allocations: 346 kB / 417.7 MB, free: 4.703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.015e-05/0.6865, allocations: 4 kB / 417.7 MB, free: 4.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003778/0.6903, allocations: 0.9296 MB / 418.7 MB, free: 3.758 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003301/0.6936, allocations: 5.133 MB / 423.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.09e-05/0.6938, allocations: 15.98 kB / 423.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004228/0.6942, allocations: 40.84 kB / 423.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.6961, allocations: 231.6 kB / 424.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002393/0.6986, allocations: 1.299 MB / 425.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.7008, allocations: 60.08 kB / 425.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004406/0.7013, allocations: 44 kB / 425.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.7014, allocations: 4 kB / 425.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004068/0.7054, allocations: 0.8109 MB / 426.3 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.857e-05/0.7056, allocations: 20.14 kB / 426.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002146/0.7058, allocations: 44.84 kB / 426.4 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001841/0.7077, allocations: 219.6 kB / 426.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002321/0.7101, allocations: 1.299 MB / 427.9 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.7113, allocations: 39.91 kB / 427.9 MB, free: 9.832 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/0.7115, allocations: 48 kB / 428 MB, free: 9.785 MB / 314.7 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 (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.002024/0.7136, allocations: 408.9 kB / 428.4 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005464/0.7141, allocations: 122.5 kB / 428.5 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002982/0.7171, allocations: 0.5791 MB / 429.1 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.12e-05/0.7173, allocations: 4 kB / 429.1 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.7173, allocations: 0 / 429.1 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.99e-05/0.7174, allocations: 3.984 kB / 429.1 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009349/0.7268, allocations: 1.867 MB / 430.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.7269, allocations: 4 kB / 431 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.7281, allocations: 112.1 kB / 431.1 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002412/0.7284, allocations: 32.73 kB / 431.1 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.7285, allocations: 16 kB / 431.1 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.7308, allocations: 1.288 MB / 432.4 MB, free: 5.121 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-05/0.7309, allocations: 4.031 kB / 432.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00434/0.7353, allocations: 1.022 MB / 433.4 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.7365, allocations: 243.6 kB / 433.7 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003886/0.7369, allocations: 12 kB / 433.7 MB, free: 3.754 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/0.7388, allocations: 43.97 kB / 433.7 MB, free: 3.711 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002663/0.7391, allocations: 40.38 kB / 433.8 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.7392, allocations: 16 kB / 433.8 MB, free: 3.656 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003362/0.7426, allocations: 0.744 MB / 434.5 MB, free: 2.906 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.192e-06/0.7427, allocations: 0 / 434.5 MB, free: 2.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004806/0.7475, allocations: 464 kB / 435 MB, free: 2.453 MB / 314.7 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 (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.0005604/0.7481, allocations: 131.2 kB / 435.1 MB, free: 2.312 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00589/0.754, allocations: 1.258 MB / 436.4 MB, free: 1.035 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/0.7541, allocations: 0 / 436.4 MB, free: 1.035 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.7558, allocations: 361.7 kB / 436.7 MB, free: 0.668 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003441/0.7593, allocations: 267.7 kB / 437 MB, free: 428 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/0.7719, allocations: 3.12 MB / 440.1 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002444/0.7744, allocations: 1.204 MB / 441.3 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006337/0.7751, allocations: 79.44 kB / 441.4 MB, free: 11.92 MB / 330.7 MB Notification: Performance of SimCode: time 1.532e-06/0.7751, allocations: 0 / 441.4 MB, free: 11.92 MB / 330.7 MB Notification: Performance of Templates: time 0.07435/0.8495, allocations: 21.9 MB / 463.3 MB, free: 6.016 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches