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.0007779/0.0007779, allocations: 89.81 kB / 17.31 MB, free: 5.59 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.0008307/0.0008307, allocations: 183.2 kB / 18.21 MB, free: 5.191 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.125/1.125, allocations: 223.3 MB / 242.3 MB, free: 180 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002063/0.0002063, allocations: 12.56 kB / 302.1 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07125/0.07147, allocations: 50.42 MB / 352.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01238/0.08386, allocations: 14.24 MB / 366.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1402/0.224, allocations: 5.427 MB / 372.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002358/0.2264, allocations: 68.97 kB / 372.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002532/0.229, allocations: 0.8403 MB / 373.1 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001959/0.231, allocations: 0.5195 MB / 373.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.2323, allocations: 0.657 MB / 374.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002831/0.2351, allocations: 2.564 MB / 376.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.2364, allocations: 1.137 MB / 378 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009548/0.2374, allocations: 0.818 MB / 378.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000762/0.2381, allocations: 0.875 MB / 379.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.2383, allocations: 100.9 kB / 379.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.2385, allocations: 97.72 kB / 379.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002615/0.2388, allocations: 347.8 kB / 380.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006243/0.2394, allocations: 0.9869 MB / 381.2 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.2411, allocations: 2.438 MB / 383.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2411, allocations: 0 / 383.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2411, allocations: 0 / 383.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.2412, allocations: 0 / 383.6 MB, free: 8.469 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.0028/0.244, allocations: 2.104 MB / 385.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.244, allocations: 13.91 kB / 385.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.2443, allocations: 253.6 kB / 386 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.2456, allocations: 1.219 MB / 387.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002122/0.2458, allocations: 256.7 kB / 387.4 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002101/0.246, allocations: 191.4 kB / 387.6 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002846/0.2489, allocations: 1.959 MB / 389.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/0.2489, allocations: 2.531 kB / 389.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.249, allocations: 77.59 kB / 389.7 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.124e-05/0.2491, allocations: 49.39 kB / 389.7 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.2521, allocations: 1.632 MB / 391.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007097/0.2592, allocations: 7.292 MB / 398.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002357/0.2615, allocations: 1.268 MB / 399.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009323/0.2625, allocations: 486.6 kB / 400.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.697e-05/0.2625, allocations: 12.73 kB / 400.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.2626, allocations: 41.88 kB / 400.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 1.733e-06/0.2626, allocations: 0 / 400.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.02916/0.2917, allocations: 8.827 MB / 409.3 MB, free: 5.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.2918, allocations: 60.41 kB / 409.3 MB, free: 5.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.2932, allocations: 1.236 MB / 410.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.974e-05/0.2932, allocations: 45.7 kB / 410.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005901/0.2938, allocations: 0.9937 MB / 411.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.2941, allocations: 390.2 kB / 412 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.2943, allocations: 133.6 kB / 412.1 MB, free: 2.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.54e-05/0.2944, allocations: 305.1 kB / 412.4 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/0.2962, allocations: 0.7808 MB / 413.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.2982, allocations: 1.238 MB / 414.4 MB, free: 152 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003624/0.3019, allocations: 1.904 MB / 416.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.3019, allocations: 4 kB / 416.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004339/0.3062, allocations: 2.243 MB / 418.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002816/0.3065, allocations: 0.5193 MB / 419.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.3065, allocations: 12 kB / 419.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001137/0.3067, allocations: 40.86 kB / 419.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.3083, allocations: 451.1 kB / 419.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007924/0.3091, allocations: 1.284 MB / 420.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.3103, allocations: 167.9 kB / 421 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-05/0.3104, allocations: 68 kB / 421.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.707e-06/0.3104, allocations: 0 / 421.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003785/0.3142, allocations: 1.966 MB / 423.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.3142, allocations: 16.5 kB / 423.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.014e-05/0.3143, allocations: 52.78 kB / 423.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.3158, allocations: 415.3 kB / 423.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007116/0.3166, allocations: 1.284 MB / 424.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.3176, allocations: 140 kB / 425 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.3177, allocations: 64 kB / 425 MB, free: 4.812 MB / 334.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.0006174/0.3183, allocations: 484.6 kB / 425.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.3185, allocations: 162 kB / 425.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003646/0.3222, allocations: 1.683 MB / 427.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.3222, allocations: 12 kB / 427.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3222, allocations: 0 / 427.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.3222, allocations: 3.984 kB / 427.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006453/0.3287, allocations: 3.919 MB / 431.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.3287, allocations: 16 kB / 431.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.3298, allocations: 287.6 kB / 431.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.098e-05/0.3298, allocations: 32.84 kB / 431.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-05/0.3299, allocations: 32 kB / 431.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007266/0.3306, allocations: 1.277 MB / 432.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/0.3307, allocations: 15.94 kB / 432.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004173/0.3348, allocations: 2.383 MB / 435.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003581/0.3352, allocations: 307.1 kB / 435.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.3354, allocations: 28.11 kB / 435.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008661/0.3362, allocations: 139.8 kB / 435.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.3364, allocations: 124.2 kB / 435.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.689e-05/0.3365, allocations: 43.92 kB / 435.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000928/0.3374, allocations: 0.8061 MB / 436.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3374, allocations: 3.938 kB / 436.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001461/0.3389, allocations: 0.6094 MB / 437.4 MB, free: 7.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,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,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.0001709/0.3391, allocations: 150.9 kB / 437.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005503/0.3446, allocations: 2.95 MB / 440.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3446, allocations: 0 / 440.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.3461, allocations: 0.7501 MB / 441.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003001/0.3491, allocations: 341.3 kB / 441.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005481/0.3546, allocations: 4.575 MB / 446.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000838/0.3555, allocations: 1.349 MB / 447.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004163/0.3559, allocations: 111.4 kB / 447.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3559, allocations: 3.938 kB / 447.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of Templates: time 0.02928/0.3852, allocations: 30.52 MB / 478.1 MB, free: 15.02 MB / 398.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