Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001894/0.001894, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001969/0.001969, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 177 MB / 204.5 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.256e-05/2.383e-05, allocations: 2.312 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01193/0.01195, allocations: 8.037 MB / 280.2 MB, free: 9.707 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005373/0.01732, allocations: 2.676 MB / 282.9 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007385/0.01806, allocations: 35.81 kB / 283 MB, free: 6.988 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.01952, allocations: 0.5199 MB / 283.5 MB, free: 6.465 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001083/0.0206, allocations: 480.2 kB / 283.9 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007531/0.02136, allocations: 359.4 kB / 284.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001969/0.02333, allocations: 1.56 MB / 285.9 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009363/0.02426, allocations: 395.9 kB / 286.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.02559, allocations: 0.8613 MB / 287.1 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007873/0.02638, allocations: 470.5 kB / 287.6 MB, free: 2.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000234/0.02661, allocations: 140 kB / 287.7 MB, free: 2.203 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003925/0.027, allocations: 175.9 kB / 287.9 MB, free: 2.031 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002912/0.0273, allocations: 298.8 kB / 288.2 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005815/0.02788, allocations: 458.8 kB / 288.6 MB, free: 1.289 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1118/0.1397, allocations: 1.729 MB / 290.3 MB, free: 18.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.1397, allocations: 1.781 kB / 290.3 MB, free: 18.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1397, allocations: 0 / 290.3 MB, free: 18.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.998e-05/0.1398, allocations: 0.9062 kB / 290.3 MB, free: 18.57 MB / 266.7 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.003273/0.1431, allocations: 1.669 MB / 292 MB, free: 17.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.1431, allocations: 13.36 kB / 292 MB, free: 17.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008208/0.1439, allocations: 274.2 kB / 292.3 MB, free: 17.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.1453, allocations: 0.7585 MB / 293 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.29e-05/0.1454, allocations: 70.06 kB / 293.1 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.1455, allocations: 108 kB / 293.2 MB, free: 17.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.1472, allocations: 1.14 MB / 294.4 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.914e-05/0.1472, allocations: 6.906 kB / 294.4 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-05/0.1473, allocations: 39.28 kB / 294.4 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.1473, allocations: 25.59 kB / 294.4 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.1484, allocations: 0.6083 MB / 295 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005207/0.1536, allocations: 4.778 MB / 299.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008606/0.1545, allocations: 397.6 kB / 300.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/0.1548, allocations: 149.2 kB / 300.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.1548, allocations: 11.28 kB / 300.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.1548, allocations: 40.64 kB / 300.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.1548, allocations: 0 / 300.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002087/0.1569, allocations: 1.181 MB / 301.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.157, allocations: 135.4 kB / 301.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.1581, allocations: 1.059 MB / 302.8 MB, free: 13.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.1581, allocations: 36.45 kB / 302.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000375/0.1585, allocations: 0.7099 MB / 303.5 MB, free: 12.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.127e-05/0.1586, allocations: 161 kB / 303.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.1588, allocations: 173.1 kB / 303.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.707e-05/0.1588, allocations: 0.531 MB / 304.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.1591, allocations: 165.9 kB / 304.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/0.1596, allocations: 0.7253 MB / 305.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007302/0.1603, allocations: 0.8315 MB / 306.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.1603, allocations: 3.469 kB / 306.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001107/0.1614, allocations: 0.7652 MB / 306.9 MB, free: 9.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1614, allocations: 10.41 kB / 306.9 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.1614, allocations: 13.88 kB / 306.9 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001557/0.1616, allocations: 41.8 kB / 306.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005184/0.1621, allocations: 159.5 kB / 307.1 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007231/0.1628, allocations: 1.787 MB / 308.9 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000526/0.1634, allocations: 43.19 kB / 308.9 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.1634, allocations: 37.02 kB / 309 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004595/0.1639, allocations: 392.6 kB / 309.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003874/0.1643, allocations: 0.713 MB / 310 MB, free: 6.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006172/0.1649, allocations: 0.8184 MB / 310.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.23e-06/0.1649, allocations: 2.469 kB / 310.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.000952/0.1658, allocations: 0.7575 MB / 311.6 MB, free: 5.988 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.1658, allocations: 10.41 kB / 311.6 MB, free: 5.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1659, allocations: 12 kB / 311.6 MB, free: 5.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.332e-05/0.1659, allocations: 40.64 kB / 311.7 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.1664, allocations: 166.8 kB / 311.9 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006039/0.167, allocations: 1.794 MB / 313.6 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004901/0.1675, allocations: 32.69 kB / 313.7 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.1675, allocations: 35.81 kB / 313.7 MB, free: 4.168 MB / 266.7 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.0001315/0.1677, allocations: 317.2 kB / 314 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1678, allocations: 97.25 kB / 314.1 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006765/0.1685, allocations: 426.5 kB / 314.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.1685, allocations: 3.531 kB / 314.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.1685, allocations: 0 / 314.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1685, allocations: 3 kB / 314.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.1703, allocations: 1.455 MB / 316 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1703, allocations: 4.031 kB / 316 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.1706, allocations: 79.94 kB / 316.1 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-05/0.1707, allocations: 28.61 kB / 316.1 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1707, allocations: 8 kB / 316.1 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006139/0.1713, allocations: 1.773 MB / 317.9 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.1713, allocations: 0 / 317.9 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009939/0.1723, allocations: 0.7982 MB / 318.7 MB, free: 0 / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003218/0.1726, allocations: 128.2 kB / 318.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.1727, allocations: 12 kB / 318.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/0.1731, allocations: 15.66 kB / 318.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.141e-05/0.1732, allocations: 27.39 kB / 318.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.1732, allocations: 19.78 kB / 318.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009032/0.1741, allocations: 0.6522 MB / 319.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1741, allocations: 0 / 319.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001195/0.1753, allocations: 344 kB / 319.9 MB, free: 14.94 MB / 282.7 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.000222/0.1755, allocations: 126 kB / 320 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.1774, allocations: 1.135 MB / 321.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1774, allocations: 0 / 321.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004971/0.1779, allocations: 357 kB / 321.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.179, allocations: 231.9 kB / 321.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003284/0.1823, allocations: 1.774 MB / 323.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.1828, allocations: 436.2 kB / 323.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005109/0.1833, allocations: 118.8 kB / 324 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.1835, allocations: 56.5 kB / 324.1 MB, free: 10.86 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1835, allocations: 0 / 324.1 MB, free: 10.86 MB / 282.7 MB Notification: Performance of Templates: time 0.02282/0.2063, allocations: 10.59 MB / 334.7 MB, free: 0.5469 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.934103965992108]