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.0009858/0.0009858, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001666/0.001666, allocations: 156.5 kB / 24.55 MB, free: 20 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 0.959/0.959, allocations: 177 MB / 204.8 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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.583e-06/1.583e-06, allocations: 0 / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.645e-05, allocations: 5.125 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006537/0.006563, allocations: 8.111 MB / 281 MB, free: 9.289 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003009/0.009573, allocations: 2.68 MB / 283.7 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004128/0.009986, allocations: 35.81 kB / 283.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009578/0.01094, allocations: 0.5238 MB / 284.3 MB, free: 6.039 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005655/0.01151, allocations: 476.2 kB / 284.7 MB, free: 5.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.01196, allocations: 371.4 kB / 285.1 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.01301, allocations: 1.553 MB / 286.7 MB, free: 3.648 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004444/0.01345, allocations: 396 kB / 287 MB, free: 3.238 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000752/0.0142, allocations: 0.8728 MB / 287.9 MB, free: 2.363 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004063/0.01461, allocations: 462.5 kB / 288.4 MB, free: 1.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.01473, allocations: 136 kB / 288.5 MB, free: 1.777 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.01494, allocations: 176 kB / 288.7 MB, free: 1.605 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.01507, allocations: 290.8 kB / 289 MB, free: 1.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003677/0.01544, allocations: 450.9 kB / 289.4 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1244/0.1398, allocations: 0.9512 MB / 290.4 MB, free: 18.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1398, allocations: 0.75 kB / 290.4 MB, free: 18.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1398, allocations: 0.5625 kB / 290.4 MB, free: 18.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.439e-05/0.1399, allocations: 0 / 290.4 MB, free: 18.75 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.001741/0.1416, allocations: 1.565 MB / 291.9 MB, free: 17.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1417, allocations: 13.73 kB / 291.9 MB, free: 17.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004685/0.1421, allocations: 271.1 kB / 292.2 MB, free: 17.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008634/0.143, allocations: 0.7236 MB / 292.9 MB, free: 17.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.143, allocations: 72.5 kB / 293 MB, free: 17.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.1432, allocations: 106.8 kB / 293.1 MB, free: 17.56 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.1442, allocations: 0.8637 MB / 294 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.1442, allocations: 14.58 kB / 294 MB, free: 17.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.403e-05/0.1443, allocations: 42.64 kB / 294 MB, free: 17.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.685e-05/0.1443, allocations: 24.59 kB / 294 MB, free: 17.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006257/0.1449, allocations: 353.8 kB / 294.4 MB, free: 17.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003606/0.1485, allocations: 3.945 MB / 298.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.1491, allocations: 272.1 kB / 298.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.1492, allocations: 89.67 kB / 298.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.1493, allocations: 11.34 kB / 298.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.1493, allocations: 44.11 kB / 298.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.034e-06/0.1493, allocations: 0 / 298.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001263/0.1505, allocations: 0.9255 MB / 299.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.1506, allocations: 133.7 kB / 299.8 MB, free: 14.33 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007331/0.1513, allocations: 0.8152 MB / 300.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1513, allocations: 31.86 kB / 300.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002682/0.1516, allocations: 0.6695 MB / 301.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.147e-05/0.1517, allocations: 149.2 kB / 301.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.1518, allocations: 146.1 kB / 301.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.249e-05/0.1519, allocations: 0.5078 MB / 302.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.152, allocations: 91.78 kB / 302.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002725/0.1523, allocations: 0.6232 MB / 302.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.1527, allocations: 0.6591 MB / 303.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1527, allocations: 7.062 kB / 303.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007163/0.1535, allocations: 0.6205 MB / 304.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.1535, allocations: 10.56 kB / 304.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.1535, allocations: 11.06 kB / 304.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001312/0.1536, allocations: 32.58 kB / 304.2 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.154, allocations: 172.8 kB / 304.3 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005733/0.1545, allocations: 1.749 MB / 306.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.1548, allocations: 31.98 kB / 306.1 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.034e-05/0.1548, allocations: 39.66 kB / 306.1 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002396/0.1551, allocations: 226.2 kB / 306.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002918/0.1554, allocations: 0.6178 MB / 307 MB, free: 8.926 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004822/0.1559, allocations: 0.6576 MB / 307.6 MB, free: 8.285 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.37e-06/0.1559, allocations: 4.219 kB / 307.6 MB, free: 8.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006693/0.1565, allocations: 0.6194 MB / 308.3 MB, free: 8.086 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.1565, allocations: 13.38 kB / 308.3 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.1565, allocations: 11 kB / 308.3 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.254e-05/0.1566, allocations: 36.88 kB / 308.3 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.1569, allocations: 162 kB / 308.5 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004001/0.1573, allocations: 1.752 MB / 310.2 MB, free: 6.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.1576, allocations: 36.97 kB / 310.3 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.1576, allocations: 39.27 kB / 310.3 MB, free: 6.289 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.0001012/0.1577, allocations: 315.7 kB / 310.6 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/0.1578, allocations: 103.7 kB / 310.7 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.1581, allocations: 316.3 kB / 311 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1581, allocations: 4.75 kB / 311 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1581, allocations: 2.766 kB / 311 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1582, allocations: 0 / 311 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.1592, allocations: 1.119 MB / 312.2 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1592, allocations: 5.906 kB / 312.2 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.1594, allocations: 72.36 kB / 312.2 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.653e-05/0.1595, allocations: 21.55 kB / 312.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1595, allocations: 14.75 kB / 312.3 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003628/0.1598, allocations: 1.729 MB / 314 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1598, allocations: 2.906 kB / 314 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004417/0.1603, allocations: 0.6016 MB / 314.6 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.1604, allocations: 121.1 kB / 314.7 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.647e-05/0.1605, allocations: 11.66 kB / 314.7 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.1607, allocations: 21.33 kB / 314.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.1607, allocations: 33.09 kB / 314.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.1607, allocations: 17.16 kB / 314.8 MB, free: 2.863 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003479/0.1611, allocations: 0.4967 MB / 315.3 MB, free: 2.656 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1611, allocations: 0 / 315.3 MB, free: 2.656 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006445/0.1617, allocations: 346.8 kB / 315.6 MB, free: 2.625 MB / 266.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.000145/0.1619, allocations: 122.6 kB / 315.8 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007331/0.1626, allocations: 0.9068 MB / 316.7 MB, free: 2.078 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1626, allocations: 3.828 kB / 316.7 MB, free: 2.078 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.1628, allocations: 289.8 kB / 316.9 MB, free: 1.883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.1634, allocations: 243.5 kB / 317.2 MB, free: 1.816 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.1654, allocations: 1.695 MB / 318.9 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.582e-05/0.1655, allocations: 172.9 kB / 319 MB, free: 364 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002605/0.1658, allocations: 118.9 kB / 319.2 MB, free: 272 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.638e-05/0.1659, allocations: 56.5 kB / 319.2 MB, free: 216 kB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.1659, allocations: 4 kB / 319.2 MB, free: 212 kB / 266.7 MB Notification: Performance of Templates: time 0.01439/0.1802, allocations: 11.27 MB / 330.5 MB, free: 5.445 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9984751320444047]