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.001395/0.001395, allocations: 102.5 kB / 17.74 MB, free: 5.309 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.001649/0.001649, allocations: 197.2 kB / 18.67 MB, free: 4.383 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 47.94 kB / 352 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2682, allocations: 49.43 MB / 401.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01475/0.283, allocations: 13.92 MB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00838/0.2914, allocations: 5.108 MB / 420.5 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001852/0.2933, allocations: 63.75 kB / 420.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002487/0.2958, allocations: 0.8971 MB / 421.4 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.2977, allocations: 0.5932 MB / 422 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009701/0.2986, allocations: 0.5033 MB / 422.5 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002118/0.3008, allocations: 2.167 MB / 424.7 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001334/0.3021, allocations: 1.127 MB / 425.8 MB, free: 308 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008144/0.3029, allocations: 0.7938 MB / 426.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008351/0.3038, allocations: 0.8748 MB / 427.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000251/0.304, allocations: 232 kB / 427.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004121/0.3045, allocations: 272 kB / 428 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.3048, allocations: 446.5 kB / 428.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007755/0.3056, allocations: 0.9836 MB / 429.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002327/0.3079, allocations: 2.753 MB / 432.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3079, allocations: 0 / 432.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3079, allocations: 4 kB / 432.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.09e-05/0.3079, allocations: 0 / 432.2 MB, free: 9.941 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003244/0.3112, allocations: 2.031 MB / 434.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3112, allocations: 12.03 kB / 434.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006936/0.3119, allocations: 238.6 kB / 434.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.3136, allocations: 1.04 MB / 435.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.802e-05/0.3137, allocations: 119.3 kB / 435.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.3139, allocations: 152.4 kB / 435.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002268/0.3161, allocations: 1.431 MB / 437.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.877e-05/0.3162, allocations: 7.906 kB / 437.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.3163, allocations: 64 kB / 437.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/0.3164, allocations: 36 kB / 437.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.3181, allocations: 0.9595 MB / 438.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007226/0.3253, allocations: 6.085 MB / 444.3 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.3264, allocations: 0.6414 MB / 445 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004169/0.3269, allocations: 238.1 kB / 445.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.3269, allocations: 8.438 kB / 445.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.3269, allocations: 38.98 kB / 445.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 2.645e-06/0.3269, allocations: 4 kB / 445.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=54): time 0.002968/0.3299, allocations: 1.703 MB / 447 MB, free: 10.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.33, allocations: 89.53 kB / 447 MB, free: 10.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.3314, allocations: 1.127 MB / 448.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.3315, allocations: 37.7 kB / 448.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005329/0.332, allocations: 0.8014 MB / 449 MB, free: 8.453 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.3322, allocations: 209.1 kB / 449.2 MB, free: 8.246 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.3324, allocations: 174.5 kB / 449.4 MB, free: 8.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3325, allocations: 341.9 kB / 449.7 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000471/0.333, allocations: 248.8 kB / 450 MB, free: 7.484 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006821/0.3337, allocations: 0.6251 MB / 450.6 MB, free: 6.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.3349, allocations: 0.9185 MB / 451.5 MB, free: 5.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.3349, allocations: 11.94 kB / 451.5 MB, free: 5.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00169/0.3366, allocations: 0.9865 MB / 452.5 MB, free: 4.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.3366, allocations: 15.94 kB / 452.5 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.3367, allocations: 12.69 kB / 452.5 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.3368, allocations: 44.84 kB / 452.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007367/0.3376, allocations: 223.6 kB / 452.8 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.3386, allocations: 1.39 MB / 454.2 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006622/0.3393, allocations: 51.83 kB / 454.2 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.502e-05/0.3393, allocations: 44 kB / 454.3 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007905/0.3401, allocations: 474.1 kB / 454.7 MB, free: 2.176 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000614/0.3407, allocations: 0.6017 MB / 455.3 MB, free: 1.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001022/0.3418, allocations: 0.8639 MB / 456.2 MB, free: 360 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.911e-06/0.3418, allocations: 7.938 kB / 456.2 MB, free: 352 kB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001433/0.3432, allocations: 0.9403 MB / 457.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.3433, allocations: 12.16 kB / 457.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.3433, allocations: 16 kB / 457.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001027/0.3434, allocations: 48.77 kB / 457.2 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006778/0.3441, allocations: 219.7 kB / 457.4 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009845/0.3451, allocations: 1.386 MB / 458.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.3457, allocations: 43.92 kB / 458.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.918e-05/0.3458, allocations: 48 kB / 458.9 MB, free: 13.48 MB / 382.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.0002463/0.346, allocations: 251.9 kB / 459.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.3462, allocations: 114.6 kB / 459.3 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.3473, allocations: 0.5631 MB / 459.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3473, allocations: 3.984 kB / 459.8 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3473, allocations: 4 kB / 459.8 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/0.3477, allocations: 239.6 kB / 460.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.3478, allocations: 12 kB / 460.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004898/0.3483, allocations: 31.97 kB / 460.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.252e-05/0.3484, allocations: 32.39 kB / 460.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001472/0.3499, allocations: 0.6174 MB / 460.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001386/0.3513, allocations: 0.936 MB / 461.7 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003791/0.3517, allocations: 211.4 kB / 461.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001017/0.3527, allocations: 0.7632 MB / 462.7 MB, free: 9.645 MB / 382.1 MB Notification: Performance of Backend: time 4.3e-07/0.3527, allocations: 0 / 462.7 MB, free: 9.645 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002341/0.3551, allocations: 1.195 MB / 463.9 MB, free: 8.422 MB / 382.1 MB Notification: Performance of SimCode: time 0.004474/0.3596, allocations: 3.008 MB / 466.9 MB, free: 5.371 MB / 382.1 MB Notification: Performance of Templates: time 0.02899/0.3886, allocations: 16.44 MB / 483.3 MB, free: 5.07 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","/var/lib/jenkins1/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