Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 106.4 kB / 17.74 MB, free: 5.348 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.001265/0.001265, allocations: 185.4 kB / 18.67 MB, free: 4.43 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.449/1.449, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009997/0.0009998, allocations: 55.91 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2142, allocations: 49.43 MB / 401.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.0147/0.229, allocations: 14.51 MB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008489/0.2375, allocations: 5.302 MB / 421.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002023/0.2395, allocations: 63.75 kB / 421.3 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002499/0.2421, allocations: 0.9357 MB / 422.2 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001854/0.244, allocations: 0.6397 MB / 422.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.2452, allocations: 0.6008 MB / 423.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002669/0.2478, allocations: 2.393 MB / 425.9 MB, free: 356 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/0.2495, allocations: 1.204 MB / 427.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00106/0.2506, allocations: 0.8832 MB / 428 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001165/0.2518, allocations: 0.9603 MB / 428.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000377/0.2521, allocations: 248 kB / 429.2 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005631/0.2527, allocations: 292 kB / 429.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003861/0.2531, allocations: 486.3 kB / 429.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.2542, allocations: 1.073 MB / 431 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002671/0.2569, allocations: 2.994 MB / 434 MB, free: 8.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2569, allocations: 4 kB / 434 MB, free: 8.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2569, allocations: 0 / 434 MB, free: 8.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.258e-05/0.257, allocations: 7.938 kB / 434 MB, free: 8.141 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.004049/0.2611, allocations: 2.242 MB / 436.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2611, allocations: 8.031 kB / 436.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/0.2618, allocations: 274.2 kB / 436.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00176/0.2636, allocations: 1.154 MB / 437.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.461e-05/0.2637, allocations: 123.7 kB / 437.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002089/0.2639, allocations: 172.3 kB / 438 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.2666, allocations: 1.594 MB / 439.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.852e-05/0.2666, allocations: 7.906 kB / 439.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.2668, allocations: 72 kB / 439.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.11e-05/0.2668, allocations: 40 kB / 439.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/0.2689, allocations: 1.082 MB / 440.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00827/0.2772, allocations: 6.603 MB / 447.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/0.2791, allocations: 0.9522 MB / 448.3 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005699/0.2797, allocations: 302.9 kB / 448.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.2797, allocations: 12.55 kB / 448.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.2797, allocations: 35.12 kB / 448.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.715e-06/0.2798, allocations: 4 kB / 448.7 MB, free: 8.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.003958/0.2837, allocations: 2.026 MB / 450.7 MB, free: 6.824 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.2838, allocations: 89.66 kB / 450.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.2855, allocations: 1.269 MB / 452 MB, free: 5.434 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.734e-05/0.2855, allocations: 41.7 kB / 452.1 MB, free: 5.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006124/0.2861, allocations: 0.8802 MB / 453 MB, free: 4.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.2863, allocations: 244.5 kB / 453.2 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.2866, allocations: 198.8 kB / 453.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2867, allocations: 349.9 kB / 453.7 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006339/0.2874, allocations: 310 kB / 454 MB, free: 3.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008621/0.2882, allocations: 0.708 MB / 454.8 MB, free: 2.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.2898, allocations: 1.039 MB / 455.8 MB, free: 1.273 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.2898, allocations: 4 kB / 455.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002035/0.2918, allocations: 1.157 MB / 457 MB, free: 104 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2919, allocations: 15.97 kB / 457 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.2919, allocations: 16 kB / 457 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/0.292, allocations: 44.78 kB / 457 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009316/0.293, allocations: 259.7 kB / 457.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.294, allocations: 1.405 MB / 458.7 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007785/0.2948, allocations: 68.03 kB / 458.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.11e-05/0.2949, allocations: 48 kB / 458.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009087/0.2958, allocations: 0.5258 MB / 459.3 MB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007501/0.2966, allocations: 0.6698 MB / 460 MB, free: 12.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001282/0.2979, allocations: 0.9893 MB / 461 MB, free: 11.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.082e-06/0.2979, allocations: 4 kB / 461 MB, free: 11.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001737/0.2996, allocations: 1.094 MB / 462.1 MB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.2997, allocations: 8 kB / 462.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.2997, allocations: 16 kB / 462.1 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.473e-05/0.2998, allocations: 41.38 kB / 462.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008122/0.3006, allocations: 251.6 kB / 462.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009674/0.3016, allocations: 1.39 MB / 463.8 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007274/0.3023, allocations: 47.97 kB / 463.8 MB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.948e-05/0.3024, allocations: 56 kB / 463.9 MB, free: 8.484 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (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 (139): * Single equations (assignments): 138 * 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.0002158/0.3026, allocations: 253.3 kB / 464.1 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.3028, allocations: 138.2 kB / 464.3 MB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.3043, allocations: 0.6893 MB / 465 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.3043, allocations: 3.984 kB / 465 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3043, allocations: 4 kB / 465 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003894/0.3047, allocations: 267.3 kB / 465.2 MB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.3049, allocations: 19.94 kB / 465.2 MB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006119/0.3055, allocations: 43.95 kB / 465.3 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.073e-05/0.3056, allocations: 44.44 kB / 465.3 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002104/0.3077, allocations: 0.7922 MB / 466.1 MB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001886/0.3096, allocations: 1.144 MB / 467.3 MB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005387/0.3101, allocations: 264.3 kB / 467.5 MB, free: 4.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001186/0.3113, allocations: 0.8461 MB / 468.4 MB, free: 3.926 MB / 382.1 MB Notification: Performance of Backend: time 4.71e-07/0.3113, allocations: 0 / 468.4 MB, free: 3.926 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002572/0.3139, allocations: 1.368 MB / 469.7 MB, free: 2.531 MB / 382.1 MB Notification: Performance of SimCode: time 0.004972/0.3189, allocations: 3.33 MB / 473.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of Templates: time 0.03232/0.3512, allocations: 18.92 MB / 492 MB, free: 12.4 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches