Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 117.7 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002096/0.002096, allocations: 190.6 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 51.92 kB / 366.8 MB, free: 348 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1022, allocations: 52.14 MB / 419 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01105/0.1132, allocations: 8.215 MB / 427.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005512/0.1188, allocations: 2.699 MB / 429.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.12, allocations: 35.81 kB / 429.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.1219, allocations: 0.5513 MB / 430.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.1236, allocations: 472.5 kB / 430.9 MB, free: 92 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.1247, allocations: 359.5 kB / 431.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002355/0.127, allocations: 1.506 MB / 432.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009114/0.128, allocations: 423.5 kB / 433.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.129, allocations: 0.5797 MB / 433.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.13, allocations: 0.6104 MB / 434.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003082/0.1303, allocations: 136 kB / 434.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005146/0.1308, allocations: 180 kB / 434.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002628/0.1311, allocations: 283 kB / 435 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006988/0.1318, allocations: 0.6686 MB / 435.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002146/0.1339, allocations: 1.731 MB / 437.4 MB, free: 9.598 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.134, allocations: 0 / 437.4 MB, free: 9.598 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.134, allocations: 0 / 437.4 MB, free: 9.598 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.25e-05/0.134, allocations: 0 / 437.4 MB, free: 9.598 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002701/0.1367, allocations: 1.545 MB / 438.9 MB, free: 8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1367, allocations: 11.97 kB / 438.9 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006755/0.1374, allocations: 192 kB / 439.1 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.1388, allocations: 0.8024 MB / 439.9 MB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.977e-05/0.1389, allocations: 81.94 kB / 440 MB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.139, allocations: 99.95 kB / 440.1 MB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.1407, allocations: 0.9536 MB / 441 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.494e-05/0.1407, allocations: 7.984 kB / 441.1 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.19e-05/0.1408, allocations: 36 kB / 441.1 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.1408, allocations: 24 kB / 441.1 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.1421, allocations: 0.6363 MB / 441.8 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005702/0.1478, allocations: 4.085 MB / 445.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.1489, allocations: 414 kB / 446.2 MB, free: 368 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/0.1492, allocations: 157.4 kB / 446.4 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.1492, allocations: 11.92 kB / 446.4 MB, free: 196 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.1493, allocations: 34.56 kB / 446.4 MB, free: 152 kB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.1493, allocations: 0 / 446.4 MB, free: 152 kB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.1758/0.3251, allocations: 1.335 MB / 447.8 MB, free: 29.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.3251, allocations: 110.7 kB / 447.9 MB, free: 29.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.3262, allocations: 0.895 MB / 448.8 MB, free: 29.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.3262, allocations: 35.02 kB / 448.8 MB, free: 29.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002929/0.3265, allocations: 0.5996 MB / 449.4 MB, free: 29.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.876e-05/0.3266, allocations: 154.1 kB / 449.6 MB, free: 29.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.3267, allocations: 140 kB / 449.7 MB, free: 29.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.147e-05/0.3268, allocations: 330.8 kB / 450 MB, free: 28.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002966/0.3271, allocations: 176.9 kB / 450.2 MB, free: 28.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.3275, allocations: 493.7 kB / 450.7 MB, free: 28.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007031/0.3282, allocations: 0.6814 MB / 451.4 MB, free: 28.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3282, allocations: 3.5 kB / 451.4 MB, free: 28.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001071/0.3293, allocations: 0.7576 MB / 452.1 MB, free: 27.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3293, allocations: 12.84 kB / 452.1 MB, free: 27.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3293, allocations: 12.47 kB / 452.1 MB, free: 27.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001493/0.3294, allocations: 33.08 kB / 452.2 MB, free: 27.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005356/0.33, allocations: 169.9 kB / 452.3 MB, free: 27.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000723/0.3307, allocations: 1.4 MB / 453.7 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005621/0.3313, allocations: 35.27 kB / 453.8 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.817e-05/0.3313, allocations: 35.59 kB / 453.8 MB, free: 26.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000524/0.3318, allocations: 356.1 kB / 454.2 MB, free: 26.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003781/0.3322, allocations: 486.1 kB / 454.6 MB, free: 26.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006665/0.3329, allocations: 0.6671 MB / 455.3 MB, free: 25.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.101e-06/0.3329, allocations: 3.125 kB / 455.3 MB, free: 25.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001084/0.334, allocations: 0.7239 MB / 456 MB, free: 25.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.334, allocations: 9.375 kB / 456 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.334, allocations: 13.09 kB / 456.1 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001046/0.3341, allocations: 34.09 kB / 456.1 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005984/0.3347, allocations: 167.2 kB / 456.2 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007411/0.3354, allocations: 1.39 MB / 457.6 MB, free: 23.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005697/0.336, allocations: 37.95 kB / 457.7 MB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-05/0.3361, allocations: 34.08 kB / 457.7 MB, free: 23.69 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0001731/0.3362, allocations: 230 kB / 457.9 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.3364, allocations: 99.77 kB / 458 MB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008289/0.3372, allocations: 432.5 kB / 458.5 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3372, allocations: 5.156 kB / 458.5 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3372, allocations: 1.781 kB / 458.5 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3372, allocations: 4.891 kB / 458.5 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.3391, allocations: 1.375 MB / 459.8 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3391, allocations: 1.953 kB / 459.8 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.3395, allocations: 82.83 kB / 459.9 MB, free: 22.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.294e-05/0.3395, allocations: 31 kB / 460 MB, free: 22.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.3396, allocations: 13.78 kB / 460 MB, free: 22.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006366/0.3402, allocations: 1.369 MB / 461.3 MB, free: 21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3402, allocations: 2.531 kB / 461.3 MB, free: 21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3412, allocations: 0.7171 MB / 462.1 MB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002599/0.3415, allocations: 211.4 kB / 462.3 MB, free: 20.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.226e-05/0.3416, allocations: 8.984 kB / 462.3 MB, free: 20.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003894/0.342, allocations: 24.83 kB / 462.3 MB, free: 20.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.227e-05/0.342, allocations: 30 kB / 462.3 MB, free: 20.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.3421, allocations: 18.14 kB / 462.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007927/0.3429, allocations: 0.6046 MB / 462.9 MB, free: 20.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3429, allocations: 0 / 462.9 MB, free: 20.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001241/0.3441, allocations: 349.1 kB / 463.3 MB, free: 20.06 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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.0001821/0.3443, allocations: 127.7 kB / 463.4 MB, free: 19.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.3458, allocations: 0.9269 MB / 464.3 MB, free: 19.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3458, allocations: 3.094 kB / 464.3 MB, free: 19.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003775/0.3462, allocations: 287.9 kB / 464.6 MB, free: 19.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.3473, allocations: 235.7 kB / 464.9 MB, free: 19.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.3501, allocations: 1.878 MB / 466.7 MB, free: 18.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.3506, allocations: 1.023 MB / 467.8 MB, free: 17.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.3508, allocations: 63.31 kB / 467.8 MB, free: 17.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3508, allocations: 0 / 467.8 MB, free: 17.43 MB / 366.1 MB Notification: Performance of Templates: time 0.02206/0.3728, allocations: 16.99 MB / 484.8 MB, free: 10.25 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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: 9.110714690992609]