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.00101/0.00101, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001325/0.001325, allocations: 157.2 kB / 24.99 MB, free: 8.805 MB / 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.9973/0.9973, allocations: 177 MB / 205.2 MB, free: 5.57 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.733e-06/1.733e-06, allocations: 0 / 273 MB, free: 1.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.201e-05, allocations: 2.312 kB / 273 MB, free: 1.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008298/0.008321, allocations: 8.064 MB / 281.1 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003823/0.01214, allocations: 2.68 MB / 283.8 MB, free: 6.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005266/0.01267, allocations: 31.88 kB / 283.8 MB, free: 6.879 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.01377, allocations: 0.5199 MB / 284.3 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007119/0.01448, allocations: 492.2 kB / 284.8 MB, free: 5.871 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000513/0.01499, allocations: 355.4 kB / 285.1 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001216/0.01621, allocations: 1.553 MB / 286.7 MB, free: 3.965 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005412/0.01675, allocations: 395.9 kB / 287.1 MB, free: 3.555 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008714/0.01762, allocations: 0.8767 MB / 288 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004863/0.01811, allocations: 466.5 kB / 288.4 MB, free: 2.219 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.01824, allocations: 140 kB / 288.5 MB, free: 2.082 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000239/0.01848, allocations: 176 kB / 288.7 MB, free: 1.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.01865, allocations: 298.8 kB / 289 MB, free: 1.617 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003646/0.01901, allocations: 454.8 kB / 289.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.02006, allocations: 0.9573 MB / 290.4 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.02006, allocations: 0 / 290.4 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.02006, allocations: 0 / 290.4 MB, free: 216 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.02007, allocations: 0 / 290.4 MB, free: 216 kB / 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.1027/0.1228, allocations: 1.563 MB / 292 MB, free: 29.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1228, allocations: 14.39 kB / 292 MB, free: 29.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005238/0.1233, allocations: 273.2 kB / 292.3 MB, free: 29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009145/0.1242, allocations: 0.7356 MB / 293 MB, free: 28.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.65e-05/0.1243, allocations: 75.69 kB / 293.1 MB, free: 28.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1244, allocations: 107.2 kB / 293.2 MB, free: 28.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009713/0.1253, allocations: 0.868 MB / 294 MB, free: 28.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.133e-05/0.1254, allocations: 3.359 kB / 294 MB, free: 28.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.887e-05/0.1254, allocations: 43.17 kB / 294.1 MB, free: 28.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.1255, allocations: 27.53 kB / 294.1 MB, free: 28.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000607/0.1261, allocations: 358.8 kB / 294.5 MB, free: 28.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003117/0.1292, allocations: 3.945 MB / 298.4 MB, free: 25.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005036/0.1297, allocations: 274.3 kB / 298.7 MB, free: 25.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.1298, allocations: 87.62 kB / 298.8 MB, free: 25.19 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.1298, allocations: 7.359 kB / 298.8 MB, free: 25.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.1299, allocations: 44.89 kB / 298.8 MB, free: 25.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.883e-06/0.1299, allocations: 0 / 298.8 MB, free: 25.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001274/0.1311, allocations: 0.9271 MB / 299.7 MB, free: 24.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.1312, allocations: 134.1 kB / 299.9 MB, free: 24.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007465/0.1319, allocations: 0.8162 MB / 300.7 MB, free: 24.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.1319, allocations: 36.3 kB / 300.7 MB, free: 24.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.1322, allocations: 0.6586 MB / 301.4 MB, free: 23.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.328e-05/0.1323, allocations: 158.1 kB / 301.5 MB, free: 23.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.1324, allocations: 144.4 kB / 301.7 MB, free: 23.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.088e-05/0.1324, allocations: 0.5046 MB / 302.2 MB, free: 22.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.1326, allocations: 96.08 kB / 302.3 MB, free: 22.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002903/0.1329, allocations: 0.6198 MB / 302.9 MB, free: 22.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.1334, allocations: 0.6586 MB / 303.5 MB, free: 21.37 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.1334, allocations: 3.844 kB / 303.6 MB, free: 21.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007327/0.1341, allocations: 0.62 MB / 304.2 MB, free: 21.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.1341, allocations: 10.91 kB / 304.2 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.1341, allocations: 9.625 kB / 304.2 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001372/0.1343, allocations: 34.02 kB / 304.2 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003402/0.1346, allocations: 167.3 kB / 304.4 MB, free: 21.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005984/0.1352, allocations: 1.755 MB / 306.1 MB, free: 19.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.1356, allocations: 36.81 kB / 306.2 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.1356, allocations: 34.89 kB / 306.2 MB, free: 19.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002643/0.1359, allocations: 225.9 kB / 306.4 MB, free: 19.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000285/0.1361, allocations: 0.6188 MB / 307.1 MB, free: 18.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004306/0.1366, allocations: 0.6599 MB / 307.7 MB, free: 17.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.46e-06/0.1366, allocations: 6.688 kB / 307.7 MB, free: 17.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006756/0.1373, allocations: 0.6262 MB / 308.3 MB, free: 17.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.1373, allocations: 9.969 kB / 308.4 MB, free: 17.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1373, allocations: 10.06 kB / 308.4 MB, free: 17.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.621e-05/0.1374, allocations: 37.7 kB / 308.4 MB, free: 17.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000307/0.1377, allocations: 165.1 kB / 308.6 MB, free: 17.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00045/0.1381, allocations: 1.736 MB / 310.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.1384, allocations: 37.03 kB / 310.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/0.1384, allocations: 36.94 kB / 310.4 MB, free: 15.65 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.0001316/0.1386, allocations: 326.6 kB / 310.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.01e-05/0.1386, allocations: 101 kB / 310.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004011/0.139, allocations: 312.5 kB / 311.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1391, allocations: 3.781 kB / 311.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1391, allocations: 9.562 kB / 311.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1391, allocations: 3.234 kB / 311.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.1402, allocations: 1.11 MB / 312.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1402, allocations: 0 / 312.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.1403, allocations: 71.91 kB / 312.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.816e-05/0.1404, allocations: 27.67 kB / 312.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.1404, allocations: 8 kB / 312.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003789/0.1408, allocations: 1.735 MB / 314.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.1408, allocations: 0 / 314.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004331/0.1412, allocations: 0.5969 MB / 314.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.1414, allocations: 126 kB / 314.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.1414, allocations: 16 kB / 314.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.1416, allocations: 20.08 kB / 314.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.1417, allocations: 31.89 kB / 314.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.1417, allocations: 12 kB / 314.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003532/0.142, allocations: 0.5028 MB / 315.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.142, allocations: 0 / 315.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006787/0.1427, allocations: 347.9 kB / 315.7 MB, free: 10.72 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.0001555/0.1429, allocations: 128.6 kB / 315.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007523/0.1436, allocations: 0.906 MB / 316.7 MB, free: 9.645 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1436, allocations: 8.188 kB / 316.7 MB, free: 9.637 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.1438, allocations: 285.3 kB / 317 MB, free: 9.336 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006296/0.1444, allocations: 234.1 kB / 317.2 MB, free: 9.137 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.1463, allocations: 1.703 MB / 319 MB, free: 7.375 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.233e-05/0.1464, allocations: 175.6 kB / 319.1 MB, free: 7.184 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.1466, allocations: 118.9 kB / 319.2 MB, free: 7.062 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.434e-05/0.1467, allocations: 52.5 kB / 319.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1467, allocations: 0 / 319.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of Templates: time 0.01276/0.1595, allocations: 10.59 MB / 329.9 MB, free: 12.67 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: 3.164664793992415]