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.001714/0.001714, allocations: 115.6 kB / 18.45 MB, free: 4.562 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.001977/0.001977, allocations: 194.6 kB / 21.39 MB, free: 1.629 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.504/1.504, allocations: 225.6 MB / 249.8 MB, free: 3.594 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.001578/0.001578, allocations: 55.92 kB / 366.8 MB, free: 292 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.1014, allocations: 52.13 MB / 419 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01063/0.1121, allocations: 8.213 MB / 427.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006484/0.1186, allocations: 2.699 MB / 429.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001617/0.1202, allocations: 27.94 kB / 429.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.1221, allocations: 0.559 MB / 430.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001629/0.1238, allocations: 468.5 kB / 430.9 MB, free: 48 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1248, allocations: 366.7 kB / 431.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002315/0.1271, allocations: 1.505 MB / 432.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008772/0.128, allocations: 427.5 kB / 433.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009488/0.129, allocations: 0.5641 MB / 433.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.13, allocations: 0.6026 MB / 434.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003107/0.1303, allocations: 140 kB / 434.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005821/0.1309, allocations: 176 kB / 434.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003243/0.1312, allocations: 286.9 kB / 435 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008532/0.132, allocations: 0.6686 MB / 435.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002149/0.1342, allocations: 1.727 MB / 437.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1342, allocations: 0 / 437.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1342, allocations: 4 kB / 437.4 MB, free: 9.566 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.796e-05/0.1343, allocations: 3.938 kB / 437.4 MB, free: 9.562 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.003137/0.1374, allocations: 1.541 MB / 438.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1375, allocations: 12.03 kB / 438.9 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000628/0.1381, allocations: 192 kB / 439.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.1395, allocations: 0.8024 MB / 439.9 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.665e-05/0.1396, allocations: 73.94 kB / 440 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.1397, allocations: 107.9 kB / 440.1 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.1412, allocations: 0.9458 MB / 441 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.098e-05/0.1413, allocations: 4 kB / 441 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.098e-05/0.1414, allocations: 40 kB / 441.1 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.1414, allocations: 24 kB / 441.1 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.1427, allocations: 0.6402 MB / 441.7 MB, free: 5.051 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005714/0.1484, allocations: 4.093 MB / 445.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009836/0.1494, allocations: 414.1 kB / 446.2 MB, free: 332 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.1497, allocations: 153.4 kB / 446.4 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.1497, allocations: 4 kB / 446.4 MB, free: 172 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.1497, allocations: 42.56 kB / 446.4 MB, free: 120 kB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.1497, allocations: 0 / 446.4 MB, free: 120 kB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.2054/0.3551, allocations: 1.333 MB / 447.8 MB, free: 29.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.3551, allocations: 110.8 kB / 447.9 MB, free: 29.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.3562, allocations: 0.8896 MB / 448.8 MB, free: 29.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.3562, allocations: 39.3 kB / 448.8 MB, free: 29.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003048/0.3565, allocations: 0.6018 MB / 449.4 MB, free: 29.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.3566, allocations: 157 kB / 449.5 MB, free: 29.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.3567, allocations: 136.2 kB / 449.7 MB, free: 29.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.629e-05/0.3568, allocations: 333.8 kB / 450 MB, free: 28.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.357, allocations: 174.8 kB / 450.2 MB, free: 28.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.3574, allocations: 490.6 kB / 450.7 MB, free: 28.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006802/0.3581, allocations: 0.6869 MB / 451.3 MB, free: 28.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3581, allocations: 2.031 kB / 451.3 MB, free: 28.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00101/0.3591, allocations: 0.762 MB / 452.1 MB, free: 27.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.3592, allocations: 8.938 kB / 452.1 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.3592, allocations: 10.59 kB / 452.1 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.3593, allocations: 33.19 kB / 452.2 MB, free: 27.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005161/0.3598, allocations: 172.9 kB / 452.3 MB, free: 27.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007288/0.3606, allocations: 1.395 MB / 453.7 MB, free: 26.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005349/0.3611, allocations: 41.39 kB / 453.8 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.322e-05/0.3612, allocations: 35.5 kB / 453.8 MB, free: 26.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004907/0.3616, allocations: 350.8 kB / 454.1 MB, free: 26.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003657/0.362, allocations: 481.3 kB / 454.6 MB, free: 26.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000631/0.3626, allocations: 0.6659 MB / 455.3 MB, free: 25.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.751e-06/0.3626, allocations: 2.406 kB / 455.3 MB, free: 25.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001019/0.3637, allocations: 0.7293 MB / 456 MB, free: 25.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3637, allocations: 9.969 kB / 456 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.3637, allocations: 10.41 kB / 456 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.923e-05/0.3638, allocations: 39.33 kB / 456.1 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006017/0.3644, allocations: 165.2 kB / 456.2 MB, free: 25.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007415/0.3651, allocations: 1.391 MB / 457.6 MB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005395/0.3657, allocations: 34.11 kB / 457.7 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.3657, allocations: 33.84 kB / 457.7 MB, free: 23.67 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.0001785/0.3659, allocations: 234.7 kB / 457.9 MB, free: 23.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.366, allocations: 99.42 kB / 458 MB, free: 23.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007621/0.3668, allocations: 431.2 kB / 458.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3668, allocations: 5.375 kB / 458.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3668, allocations: 1 kB / 458.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3668, allocations: 2.672 kB / 458.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.3687, allocations: 1.379 MB / 459.8 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3687, allocations: 6.109 kB / 459.8 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003531/0.369, allocations: 77.95 kB / 459.9 MB, free: 22.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.108e-05/0.3691, allocations: 23 kB / 459.9 MB, free: 22.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.3691, allocations: 13.94 kB / 459.9 MB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000633/0.3698, allocations: 1.373 MB / 461.3 MB, free: 20.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3698, allocations: 2.312 kB / 461.3 MB, free: 20.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009299/0.3707, allocations: 0.7201 MB / 462 MB, free: 20.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.371, allocations: 207.2 kB / 462.2 MB, free: 20.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.617e-05/0.3711, allocations: 13.41 kB / 462.3 MB, free: 20.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003792/0.3714, allocations: 23.25 kB / 462.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.636e-05/0.3715, allocations: 33.16 kB / 462.3 MB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/0.3715, allocations: 19.38 kB / 462.3 MB, free: 20.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007648/0.3723, allocations: 0.6044 MB / 462.9 MB, free: 20.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3723, allocations: 0 / 462.9 MB, free: 20.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001249/0.3736, allocations: 346.5 kB / 463.3 MB, free: 20.04 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.0002366/0.3738, allocations: 125.4 kB / 463.4 MB, free: 19.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.3753, allocations: 0.934 MB / 464.3 MB, free: 19.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3753, allocations: 0.8906 kB / 464.3 MB, free: 19.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003503/0.3756, allocations: 281.9 kB / 464.6 MB, free: 19.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.3767, allocations: 236.8 kB / 464.8 MB, free: 19.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.3794, allocations: 1.88 MB / 466.7 MB, free: 18.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.3798, allocations: 1.022 MB / 467.7 MB, free: 17.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.38, allocations: 64.67 kB / 467.8 MB, free: 17.41 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.38, allocations: 0 / 467.8 MB, free: 17.41 MB / 366.1 MB Notification: Performance of Templates: time 0.02176/0.4018, allocations: 16.98 MB / 484.8 MB, free: 10.18 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.31288676301483]