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.0008798/0.0008798, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.0008565/0.0008565, allocations: 165.1 kB / 24.91 MB, free: 8.715 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.9238/0.9238, allocations: 177 MB / 205.2 MB, free: 5.02 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.322e-06/1.322e-06, allocations: 0 / 273.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.754e-05/1.886e-05, allocations: 5.266 kB / 273.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006274/0.006292, allocations: 7.909 MB / 281.3 MB, free: 9.082 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003456/0.009748, allocations: 2.757 MB / 284.1 MB, free: 6.316 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004237/0.01017, allocations: 35.81 kB / 284.1 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.01123, allocations: 0.5199 MB / 284.6 MB, free: 5.758 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005879/0.01182, allocations: 0.4884 MB / 285.1 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004474/0.01227, allocations: 359.4 kB / 285.5 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009381/0.0132, allocations: 1.553 MB / 287 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000419/0.01362, allocations: 411.9 kB / 287.4 MB, free: 2.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009647/0.01459, allocations: 0.8651 MB / 288.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.01498, allocations: 474.5 kB / 288.7 MB, free: 1.598 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.01509, allocations: 140 kB / 288.9 MB, free: 1.461 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.01527, allocations: 172 kB / 289 MB, free: 1.293 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.01541, allocations: 294.8 kB / 289.3 MB, free: 1.004 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.01568, allocations: 454.8 kB / 289.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1012/0.1168, allocations: 0.9417 MB / 290.7 MB, free: 18.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1168, allocations: 0 / 290.7 MB, free: 18.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1168, allocations: 0 / 290.7 MB, free: 18.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.043e-05/0.1169, allocations: 0 / 290.7 MB, free: 18.94 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.002149/0.119, allocations: 1.424 MB / 292.1 MB, free: 18.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1191, allocations: 14.7 kB / 292.2 MB, free: 18.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000457/0.1195, allocations: 227.6 kB / 292.4 MB, free: 18.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007435/0.1203, allocations: 0.5728 MB / 293 MB, free: 17.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.1203, allocations: 73.98 kB / 293 MB, free: 17.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.1204, allocations: 106.2 kB / 293.1 MB, free: 17.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007608/0.1212, allocations: 0.7953 MB / 293.9 MB, free: 17.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/0.1212, allocations: 13.67 kB / 293.9 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.309e-05/0.1212, allocations: 39.62 kB / 294 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.1213, allocations: 24.25 kB / 294 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003402/0.1216, allocations: 252.6 kB / 294.2 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.1243, allocations: 3.124 MB / 297.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.1246, allocations: 221.8 kB / 297.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.832e-05/0.1247, allocations: 72.62 kB / 297.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1247, allocations: 6.172 kB / 297.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.1247, allocations: 46.11 kB / 297.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.843e-06/0.1247, allocations: 0 / 297.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009482/0.1257, allocations: 0.6612 MB / 298.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.1257, allocations: 134.3 kB / 298.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005596/0.1263, allocations: 0.7184 MB / 299.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.1263, allocations: 36.08 kB / 299.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.1265, allocations: 0.5182 MB / 299.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.156e-05/0.1266, allocations: 148.7 kB / 299.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.1267, allocations: 137.6 kB / 300.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.119e-05/0.1267, allocations: 342.2 kB / 300.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.014e-05/0.1268, allocations: 68.78 kB / 300.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.127, allocations: 477.1 kB / 300.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.1273, allocations: 0.5066 MB / 301.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.1273, allocations: 2.312 kB / 301.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004805/0.1278, allocations: 473.6 kB / 301.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1278, allocations: 8.594 kB / 301.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1278, allocations: 11.41 kB / 301.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001041/0.1279, allocations: 35.89 kB / 301.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.1282, allocations: 165.9 kB / 302.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003936/0.1286, allocations: 1.174 MB / 303.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.1289, allocations: 41.22 kB / 303.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.1289, allocations: 25.75 kB / 303.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001556/0.1291, allocations: 158.6 kB / 303.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001692/0.1292, allocations: 474.2 kB / 304 MB, free: 11.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002934/0.1295, allocations: 0.5087 MB / 304.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.578e-06/0.1295, allocations: 2.75 kB / 304.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0004479/0.13, allocations: 480 kB / 304.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.297e-06/0.13, allocations: 9.625 kB / 305 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.13, allocations: 11 kB / 305 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.737e-05/0.1301, allocations: 30.83 kB / 305 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.1303, allocations: 170.4 kB / 305.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003071/0.1306, allocations: 1.173 MB / 306.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.1309, allocations: 29.38 kB / 306.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.1309, allocations: 29.97 kB / 306.4 MB, free: 10.2 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 9.43e-05/0.131, allocations: 242.8 kB / 306.6 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.986e-05/0.131, allocations: 64.31 kB / 306.7 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.1313, allocations: 248.9 kB / 306.9 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1313, allocations: 4.25 kB / 306.9 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1313, allocations: 1.406 kB / 306.9 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1313, allocations: 6.703 kB / 306.9 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007421/0.132, allocations: 0.7125 MB / 307.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.132, allocations: 4.094 kB / 307.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1322, allocations: 74.55 kB / 307.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.026e-05/0.1323, allocations: 19.8 kB / 307.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1323, allocations: 11.28 kB / 307.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002944/0.1326, allocations: 1.159 MB / 308.9 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1326, allocations: 1.438 kB / 308.9 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/0.1329, allocations: 439.9 kB / 309.4 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.133, allocations: 81.16 kB / 309.4 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.1331, allocations: 11.56 kB / 309.4 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.1332, allocations: 22.06 kB / 309.5 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.1333, allocations: 36.36 kB / 309.5 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.1333, allocations: 9.688 kB / 309.5 MB, free: 8.273 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002328/0.1335, allocations: 348.6 kB / 309.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1335, allocations: 0 / 309.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005856/0.1341, allocations: 345.4 kB / 310.2 MB, free: 8.246 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.0001235/0.1342, allocations: 102.8 kB / 310.3 MB, free: 8.168 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005172/0.1347, allocations: 0.7282 MB / 311 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.657e-05/0.1347, allocations: 15.69 kB / 311 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.1349, allocations: 216.9 kB / 311.2 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005027/0.1354, allocations: 235.1 kB / 311.5 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.137, allocations: 1.64 MB / 313.1 MB, free: 6.887 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.717e-05/0.1371, allocations: 171.6 kB / 313.3 MB, free: 6.812 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000257/0.1374, allocations: 121.6 kB / 313.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002692/0.1376, allocations: 246.6 kB / 313.6 MB, free: 6.551 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1376, allocations: 0 / 313.6 MB, free: 6.551 MB / 266.7 MB Notification: Performance of Templates: time 0.01351/0.1512, allocations: 11.5 MB / 325.1 MB, free: 11.85 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.898010483942926]