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.00157/0.00157, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.447/1.447, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.001092/0.001092, allocations: 101 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003107/0.0003108, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2174, allocations: 47.58 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.009703/0.2272, allocations: 12.32 MB / 387.4 MB, free: 35.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006565/0.2338, allocations: 4.821 MB / 392.2 MB, free: 31.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.2353, allocations: 55.81 kB / 392.3 MB, free: 31.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.2369, allocations: 0.7186 MB / 393 MB, free: 30.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.238, allocations: 448.6 kB / 393.5 MB, free: 30.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006593/0.2387, allocations: 307.6 kB / 393.8 MB, free: 30.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001425/0.2401, allocations: 1.987 MB / 395.7 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.2411, allocations: 0.982 MB / 396.7 MB, free: 26.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005499/0.2417, allocations: 0.5871 MB / 397.3 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004774/0.2422, allocations: 0.6762 MB / 398 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.2423, allocations: 96 kB / 398.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.2426, allocations: 132 kB / 398.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.2427, allocations: 282.7 kB / 398.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004626/0.2432, allocations: 0.7984 MB / 399.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.2444, allocations: 2.185 MB / 401.5 MB, free: 22.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2444, allocations: 0 / 401.5 MB, free: 22.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2444, allocations: 4 kB / 401.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.529e-05/0.2444, allocations: 0 / 401.5 MB, free: 22.21 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.002323/0.2467, allocations: 1.739 MB / 403.2 MB, free: 20.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.2468, allocations: 12.03 kB / 403.2 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005574/0.2473, allocations: 250.5 kB / 403.5 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.2485, allocations: 1.024 MB / 404.5 MB, free: 19.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.675e-05/0.2486, allocations: 115.4 kB / 404.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/0.2488, allocations: 148.4 kB / 404.8 MB, free: 18.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.2507, allocations: 1.435 MB / 406.2 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/0.2507, allocations: 7.906 kB / 406.2 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.69e-05/0.2508, allocations: 64 kB / 406.3 MB, free: 17.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.2509, allocations: 36 kB / 406.3 MB, free: 17.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.2524, allocations: 0.9634 MB / 407.3 MB, free: 16.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005759/0.2581, allocations: 6.183 MB / 413.4 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.259, allocations: 0.6608 MB / 414.1 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.2594, allocations: 242.7 kB / 414.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.2594, allocations: 4.438 kB / 414.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.2594, allocations: 43 kB / 414.4 MB, free: 8.785 MB / 298.7 MB Notification: Performance of pre-optimization done (n=51): time 1.973e-06/0.2594, allocations: 0 / 414.4 MB, free: 8.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.002427/0.2619, allocations: 1.761 MB / 416.1 MB, free: 6.945 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.2619, allocations: 85.55 kB / 416.2 MB, free: 6.844 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.2631, allocations: 1.12 MB / 417.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.2631, allocations: 37.7 kB / 417.4 MB, free: 5.668 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.2634, allocations: 0.8014 MB / 418.2 MB, free: 4.855 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.106e-05/0.2635, allocations: 205.2 kB / 418.4 MB, free: 4.652 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.214e-05/0.2636, allocations: 20 kB / 418.4 MB, free: 4.633 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.2636, allocations: 341.9 kB / 418.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003907/0.264, allocations: 245.9 kB / 419 MB, free: 4.055 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.2645, allocations: 0.629 MB / 419.6 MB, free: 3.242 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009431/0.2655, allocations: 0.9341 MB / 420.5 MB, free: 2.125 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.2655, allocations: 4 kB / 420.5 MB, free: 2.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001285/0.2668, allocations: 1.002 MB / 421.5 MB, free: 1.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001427/0.2669, allocations: 481.5 kB / 422 MB, free: 464 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.2669, allocations: 19.94 kB / 422 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.2671, allocations: 40.84 kB / 422.1 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006152/0.2677, allocations: 227.6 kB / 422.3 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008707/0.2686, allocations: 1.299 MB / 423.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.2692, allocations: 60.03 kB / 423.7 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/0.2693, allocations: 44 kB / 423.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.432e-06/0.2693, allocations: 7.938 kB / 423.7 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001194/0.2705, allocations: 0.8149 MB / 424.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.2705, allocations: 12 kB / 424.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.004e-05/0.2706, allocations: 40.84 kB / 424.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006038/0.2712, allocations: 215.7 kB / 424.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008141/0.2721, allocations: 1.288 MB / 426.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005392/0.2726, allocations: 39.98 kB / 426.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.599e-05/0.2727, allocations: 47.94 kB / 426.2 MB, free: 12.04 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.000578/0.2733, allocations: 413.8 kB / 426.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.2734, allocations: 122.4 kB / 426.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.2744, allocations: 0.583 MB / 427.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.2745, allocations: 8 kB / 427.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.2745, allocations: 0 / 427.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2745, allocations: 0 / 427.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.2771, allocations: 1.898 MB / 429.2 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2771, allocations: 224 / 429.2 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.2776, allocations: 115.9 kB / 429.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.777e-05/0.2777, allocations: 20.84 kB / 429.3 MB, free: 8.793 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.2777, allocations: 12 kB / 429.3 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007971/0.2785, allocations: 1.28 MB / 430.6 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2786, allocations: 0 / 430.6 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.2799, allocations: 0.9422 MB / 431.5 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000301/0.2802, allocations: 247.5 kB / 431.8 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.2803, allocations: 16 kB / 431.8 MB, free: 6.102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/0.2808, allocations: 35.97 kB / 431.8 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.748e-05/0.2809, allocations: 44.33 kB / 431.9 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.2809, allocations: 12 kB / 431.9 MB, free: 6.012 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009835/0.2819, allocations: 0.7479 MB / 432.6 MB, free: 5.258 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2819, allocations: 3.938 kB / 432.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001222/0.2831, allocations: 468 kB / 433.1 MB, free: 4.797 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.0002212/0.2834, allocations: 131.2 kB / 433.2 MB, free: 4.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.2852, allocations: 1.254 MB / 434.5 MB, free: 3.391 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2853, allocations: 192 / 434.5 MB, free: 3.391 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.2858, allocations: 361.7 kB / 434.8 MB, free: 3.023 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.2872, allocations: 279.1 kB / 435.1 MB, free: 2.758 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.291, allocations: 3.131 MB / 438.2 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007055/0.2917, allocations: 1.177 MB / 439.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.2919, allocations: 79.44 kB / 439.5 MB, free: 14.28 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2919, allocations: 3.938 kB / 439.5 MB, free: 14.28 MB / 330.7 MB Notification: Performance of Templates: time 0.02518/0.3171, allocations: 22.76 MB / 462.2 MB, free: 7.5 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/jenkins/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