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.001317/0.001318, allocations: 116.9 kB / 18.41 MB, free: 4.516 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.001389/0.001389, allocations: 186.9 kB / 21.34 MB, free: 1.59 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: 222.9 MB / 247 MB, free: 4.207 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.002324/0.002324, allocations: 43.92 kB / 358.7 MB, free: 8.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1277, allocations: 49.44 MB / 408.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01089/0.1387, allocations: 8.157 MB / 416.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005109/0.1438, allocations: 2.707 MB / 419 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009035/0.1448, allocations: 23.94 kB / 419 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.1464, allocations: 0.5356 MB / 419.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001324/0.1478, allocations: 428.5 kB / 420 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008744/0.1487, allocations: 358.4 kB / 420.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001891/0.1506, allocations: 1.507 MB / 421.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009777/0.1516, allocations: 0.6049 MB / 422.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007791/0.1524, allocations: 0.5602 MB / 423 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007705/0.1531, allocations: 0.5987 MB / 423.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002098/0.1534, allocations: 144 kB / 423.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003637/0.1537, allocations: 176 kB / 423.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002594/0.154, allocations: 286.9 kB / 424.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007385/0.1547, allocations: 0.6647 MB / 424.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002083/0.1568, allocations: 1.731 MB / 426.6 MB, free: 4.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1569, allocations: 4 kB / 426.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1569, allocations: 0 / 426.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.181e-05/0.1569, allocations: 4 kB / 426.6 MB, free: 4.273 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002679/0.1596, allocations: 1.545 MB / 428.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1596, allocations: 8.031 kB / 428.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006317/0.1603, allocations: 196 kB / 428.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.1616, allocations: 0.7985 MB / 429.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.379e-05/0.1617, allocations: 85.88 kB / 429.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.1619, allocations: 99.95 kB / 429.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.1636, allocations: 0.9536 MB / 430.2 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/0.1636, allocations: 4 kB / 430.3 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.613e-05/0.1637, allocations: 40 kB / 430.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.1638, allocations: 24 kB / 430.3 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1787/0.3425, allocations: 0.6317 MB / 430.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006272/0.3488, allocations: 4.081 MB / 435 MB, free: 20.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.3502, allocations: 432.3 kB / 435.5 MB, free: 20.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004035/0.3506, allocations: 163.6 kB / 435.6 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.3507, allocations: 11.5 kB / 435.6 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.3507, allocations: 34.25 kB / 435.7 MB, free: 20.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 4.288e-06/0.3507, allocations: 1.875 kB / 435.7 MB, free: 20.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003009/0.3537, allocations: 1.337 MB / 437 MB, free: 19.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.3538, allocations: 108.2 kB / 437.1 MB, free: 19.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.3555, allocations: 0.8953 MB / 438 MB, free: 19.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.3556, allocations: 35.61 kB / 438 MB, free: 19.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000497/0.3561, allocations: 0.6034 MB / 438.6 MB, free: 19.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.3562, allocations: 159.9 kB / 438.8 MB, free: 19.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002392/0.3564, allocations: 135.8 kB / 438.9 MB, free: 19.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.835e-05/0.3565, allocations: 339.6 kB / 439.3 MB, free: 18.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004841/0.357, allocations: 173.2 kB / 439.4 MB, free: 18.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006094/0.3576, allocations: 494.4 kB / 439.9 MB, free: 18.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.3587, allocations: 0.684 MB / 440.6 MB, free: 18.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.3588, allocations: 3.375 kB / 440.6 MB, free: 18.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001751/0.3605, allocations: 0.7479 MB / 441.3 MB, free: 17.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.3606, allocations: 14.62 kB / 441.4 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.3606, allocations: 9.562 kB / 441.4 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001892/0.3608, allocations: 35.95 kB / 441.4 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/0.3617, allocations: 167.7 kB / 441.6 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009273/0.3626, allocations: 1.399 MB / 443 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00085/0.3635, allocations: 39.81 kB / 443 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.278e-05/0.3635, allocations: 32.22 kB / 443 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007554/0.3643, allocations: 352.4 kB / 443.4 MB, free: 16.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005386/0.3649, allocations: 479.7 kB / 443.8 MB, free: 16.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009333/0.3658, allocations: 0.6613 MB / 444.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.346e-06/0.3658, allocations: 7.656 kB / 444.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001643/0.3675, allocations: 0.7348 MB / 445.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.3675, allocations: 11.28 kB / 445.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.3675, allocations: 15.47 kB / 445.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001247/0.3677, allocations: 29.91 kB / 445.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007865/0.3685, allocations: 170.2 kB / 445.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008142/0.3693, allocations: 1.385 MB / 446.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008379/0.3702, allocations: 38.8 kB / 446.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.3702, allocations: 35.5 kB / 446.9 MB, free: 14.05 MB / 350.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.0001868/0.3704, allocations: 235.8 kB / 447.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.3706, allocations: 100.1 kB / 447.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.3717, allocations: 428 kB / 447.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.3717, allocations: 4.125 kB / 447.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3718, allocations: 0.6562 kB / 447.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3718, allocations: 7.078 kB / 447.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.3744, allocations: 1.379 MB / 449.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3744, allocations: 1.969 kB / 449.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005445/0.375, allocations: 82.16 kB / 449.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.3751, allocations: 23.98 kB / 449.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.3752, allocations: 11.81 kB / 449.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007953/0.376, allocations: 1.373 MB / 450.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.376, allocations: 3.828 kB / 450.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.3774, allocations: 0.7276 MB / 451.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003275/0.3777, allocations: 204.4 kB / 451.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.3779, allocations: 13.47 kB / 451.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006254/0.3785, allocations: 20.28 kB / 451.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.3786, allocations: 38.45 kB / 451.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.3786, allocations: 14.94 kB / 451.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001114/0.3798, allocations: 0.6037 MB / 452.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3798, allocations: 0 / 452.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001895/0.3817, allocations: 348.1 kB / 452.5 MB, free: 10.79 MB / 350.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.0002088/0.3819, allocations: 133.1 kB / 452.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.3838, allocations: 0.9731 MB / 453.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3838, allocations: 2.031 kB / 453.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.3843, allocations: 287.5 kB / 453.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3858, allocations: 248.6 kB / 454.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00331/0.3891, allocations: 1.866 MB / 456 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005659/0.3897, allocations: 1.024 MB / 457 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.3899, allocations: 62.23 kB / 457.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3899, allocations: 0 / 457.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of Templates: time 0.02205/0.412, allocations: 16.92 MB / 474 MB, free: 12.9 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_2/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_2/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.101755899027921]