Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 204.7 kB / 24.49 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.469/1.469, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|loadInertia.phi|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|speedController.integrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|loadInertia.phi|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|speedController.integrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 51.86 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2092, allocations: 53.37 MB / 432.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01917/0.2284, allocations: 13.24 MB / 445.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009783/0.2381, allocations: 5.478 MB / 451.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.2399, allocations: 83.44 kB / 451.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002376/0.2423, allocations: 0.9122 MB / 452.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001651/0.2439, allocations: 0.6434 MB / 452.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.2453, allocations: 0.7413 MB / 453.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002817/0.2481, allocations: 2.715 MB / 456.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.2494, allocations: 0.8546 MB / 457 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001222/0.2506, allocations: 1.016 MB / 458 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.2518, allocations: 1.1 MB / 459.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000341/0.2521, allocations: 280 kB / 459.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005075/0.2527, allocations: 324 kB / 459.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004842/0.2531, allocations: 0.5645 MB / 460.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009055/0.254, allocations: 0.9447 MB / 461.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003326/0.2574, allocations: 3.292 MB / 464.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2574, allocations: 0 / 464.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2574, allocations: 0 / 464.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.2574, allocations: 0 / 464.5 MB, free: 6.383 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.004778/0.2622, allocations: 2.482 MB / 467 MB, free: 3.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.2622, allocations: 8.031 kB / 467 MB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008129/0.263, allocations: 307.3 kB / 467.3 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.2652, allocations: 1.162 MB / 468.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004062/0.2656, allocations: 470.9 kB / 469 MB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.2659, allocations: 196.1 kB / 469.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003725/0.2696, allocations: 2.089 MB / 471.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.619e-05/0.2696, allocations: 0 / 471.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.2698, allocations: 80 kB / 471.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.221e-05/0.2698, allocations: 47.98 kB / 471.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00352/0.2734, allocations: 1.579 MB / 472.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009409/0.2828, allocations: 6.238 MB / 479.2 MB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.2852, allocations: 0.8914 MB / 480.1 MB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.2862, allocations: 440.8 kB / 480.5 MB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.785e-05/0.2863, allocations: 9 kB / 480.5 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.2863, allocations: 47.56 kB / 480.5 MB, free: 5.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=84): time 3.156e-06/0.2863, allocations: 0 / 480.5 MB, free: 5.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.03293/0.3193, allocations: 7.651 MB / 488.2 MB, free: 14.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.3193, allocations: 86.11 kB / 488.3 MB, free: 14.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.3213, allocations: 1.303 MB / 489.6 MB, free: 12.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.3214, allocations: 45.7 kB / 489.6 MB, free: 12.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007828/0.3222, allocations: 1.004 MB / 490.6 MB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003685/0.3226, allocations: 404.5 kB / 491 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004943/0.3231, allocations: 271.5 kB / 491.3 MB, free: 10.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3232, allocations: 309.1 kB / 491.6 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/0.3252, allocations: 0.7426 MB / 492.3 MB, free: 9.906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002342/0.3275, allocations: 1.209 MB / 493.6 MB, free: 8.504 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003966/0.3315, allocations: 1.785 MB / 495.3 MB, free: 6.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.3315, allocations: 4 kB / 495.3 MB, free: 6.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.004982/0.3365, allocations: 2.055 MB / 497.4 MB, free: 4.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3365, allocations: 16.09 kB / 497.4 MB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.3365, allocations: 12 kB / 497.4 MB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001744/0.3367, allocations: 44.84 kB / 497.5 MB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/0.3386, allocations: 403.4 kB / 497.9 MB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/0.3397, allocations: 1.283 MB / 499.1 MB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/0.3413, allocations: 144 kB / 499.3 MB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.3414, allocations: 64 kB / 499.3 MB, free: 2.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002334/0.3437, allocations: 0.9802 MB / 0.4886 GB, free: 1.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002102/0.3458, allocations: 1.16 MB / 0.4897 GB, free: 60 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003593/0.3494, allocations: 1.717 MB / 0.4914 GB, free: 14.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.687e-06/0.3494, allocations: 4 kB / 0.4914 GB, free: 14.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=194) (initialization_lambda0): time 0.004532/0.354, allocations: 1.969 MB / 0.4933 GB, free: 12.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.354, allocations: 12 kB / 0.4933 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.354, allocations: 12 kB / 0.4934 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001193/0.3541, allocations: 41.33 kB / 0.4934 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/0.3559, allocations: 403.2 kB / 0.4938 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.3569, allocations: 1.272 MB / 0.495 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.3583, allocations: 128 kB / 0.4951 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.3584, allocations: 64 kB / 0.4952 GB, free: 10.14 MB / 414.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: 6 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (193): * Single equations (assignments): 192 * 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.0003915/0.3588, allocations: 279.7 kB / 0.4955 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.3591, allocations: 151 kB / 0.4956 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004033/0.3631, allocations: 1.525 MB / 0.4971 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3631, allocations: 7.922 kB / 0.4971 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3631, allocations: 0 / 0.4971 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006538/0.3638, allocations: 266.8 kB / 0.4974 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.364, allocations: 19.94 kB / 0.4974 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.3652, allocations: 123.8 kB / 0.4975 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.3655, allocations: 108.8 kB / 0.4976 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004918/0.3704, allocations: 1.595 MB / 0.4992 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00566/0.3761, allocations: 2.443 MB / 0.5016 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001669/0.3777, allocations: 0.6518 MB / 0.5022 GB, free: 2.938 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001294/0.379, allocations: 0.8497 MB / 0.503 GB, free: 2.086 MB / 414.1 MB Notification: Performance of Backend: time 4.71e-07/0.379, allocations: 4 kB / 0.503 GB, free: 2.082 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005566/0.3846, allocations: 2.28 MB / 0.5053 GB, free: 15.78 MB / 430.1 MB Notification: Performance of SimCode: time 0.005472/0.3901, allocations: 3.665 MB / 0.5088 GB, free: 12.07 MB / 430.1 MB Notification: Performance of Templates: time 0.2191/0.6091, allocations: 34.84 MB / 0.5428 GB, free: 105.3 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.078262581002491]