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.001836/0.001836, allocations: 109.1 kB / 21.18 MB, free: 0.7656 MB / 14.72 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.002091/0.002091, allocations: 213.7 kB / 24.5 MB, free: 4.148 MB / 14.72 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.505/1.505, allocations: 230.5 MB / 258.1 MB, free: 8 MB / 206.1 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 0.00191/0.00191, allocations: 63.91 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2503, allocations: 53.4 MB / 432.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01041/0.2608, allocations: 8.26 MB / 440.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005384/0.2661, allocations: 2.754 MB / 443.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001283/0.2674, allocations: 39.81 kB / 443.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001821/0.2693, allocations: 0.5552 MB / 444.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001497/0.2707, allocations: 468.5 kB / 444.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008783/0.2716, allocations: 363 kB / 444.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00201/0.2736, allocations: 1.503 MB / 446.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007655/0.2744, allocations: 425.5 kB / 446.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009482/0.2754, allocations: 0.5836 MB / 447.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008707/0.2762, allocations: 0.6065 MB / 448 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002003/0.2764, allocations: 140 kB / 448.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003683/0.2768, allocations: 172 kB / 448.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002377/0.277, allocations: 298.9 kB / 448.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007053/0.2777, allocations: 0.6646 MB / 449.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002335/0.2801, allocations: 1.731 MB / 451 MB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.2801, allocations: 0 / 451 MB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2801, allocations: 0 / 451 MB, free: 4.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.402e-05/0.2801, allocations: 0 / 451 MB, free: 4.129 MB / 350.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.002905/0.283, allocations: 1.462 MB / 452.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2831, allocations: 12.03 kB / 452.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006136/0.2837, allocations: 192 kB / 452.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.2851, allocations: 0.729 MB / 453.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.524e-05/0.2851, allocations: 73.94 kB / 453.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.2853, allocations: 104 kB / 453.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.2869, allocations: 0.9622 MB / 454.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.513e-05/0.2869, allocations: 8 kB / 454.5 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.707e-05/0.287, allocations: 36 kB / 454.5 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.566e-05/0.287, allocations: 28 kB / 454.6 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.2882, allocations: 0.6364 MB / 455.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005721/0.2939, allocations: 3.986 MB / 459.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.2949, allocations: 414 kB / 459.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002906/0.2952, allocations: 156 kB / 459.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.2953, allocations: 8 kB / 459.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.2953, allocations: 46.55 kB / 459.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 3.046e-06/0.2953, allocations: 0 / 459.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002491/0.2978, allocations: 1.185 MB / 461 MB, free: 9.742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.555e-05/0.2979, allocations: 136.5 kB / 461.1 MB, free: 9.578 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.2991, allocations: 0.8937 MB / 462 MB, free: 8.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.304e-05/0.2992, allocations: 37.7 kB / 462 MB, free: 8.617 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000485/0.2997, allocations: 0.6008 MB / 462.6 MB, free: 8.008 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.2998, allocations: 150.7 kB / 462.8 MB, free: 7.859 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.3, allocations: 146.6 kB / 462.9 MB, free: 7.707 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3001, allocations: 330 kB / 463.3 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.3005, allocations: 172.8 kB / 463.4 MB, free: 7.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005851/0.3011, allocations: 0.4946 MB / 463.9 MB, free: 6.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009465/0.302, allocations: 0.6906 MB / 464.6 MB, free: 5.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.302, allocations: 4 kB / 464.6 MB, free: 5.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001316/0.3033, allocations: 0.7512 MB / 465.4 MB, free: 4.957 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.3034, allocations: 10.5 kB / 465.4 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.3034, allocations: 12 kB / 465.4 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001655/0.3035, allocations: 24.86 kB / 465.4 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.3041, allocations: 175.7 kB / 465.6 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.3052, allocations: 1.287 MB / 466.9 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006081/0.3058, allocations: 39.88 kB / 466.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.923e-05/0.3059, allocations: 39.98 kB / 467 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006061/0.3065, allocations: 350.1 kB / 467.3 MB, free: 2.914 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005451/0.307, allocations: 486.6 kB / 467.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008304/0.3079, allocations: 0.6601 MB / 468.4 MB, free: 1.484 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.2e-06/0.3079, allocations: 4 kB / 468.4 MB, free: 1.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001173/0.3091, allocations: 0.728 MB / 469.2 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3091, allocations: 12.06 kB / 469.2 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.3091, allocations: 15.98 kB / 469.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001022/0.3092, allocations: 32.86 kB / 469.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.3097, allocations: 171.7 kB / 469.4 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.3107, allocations: 1.275 MB / 470.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00056/0.3113, allocations: 39.94 kB / 470.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/0.3113, allocations: 36.12 kB / 470.7 MB, free: 15.05 MB / 382.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.0002207/0.3116, allocations: 239.9 kB / 471 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.3117, allocations: 95.39 kB / 471.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000841/0.3125, allocations: 431.2 kB / 471.5 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.3125, allocations: 4 kB / 471.5 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.3125, allocations: 4 kB / 471.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3126, allocations: 3.938 kB / 471.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.3147, allocations: 1.36 MB / 472.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.3147, allocations: 0 / 472.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000354/0.315, allocations: 71.91 kB / 472.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.3151, allocations: 24.84 kB / 473 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.3151, allocations: 8 kB / 473 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.3162, allocations: 1.279 MB / 474.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3162, allocations: 4.031 kB / 474.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.3173, allocations: 0.7114 MB / 475 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/0.3177, allocations: 139.2 kB / 475.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.919e-05/0.3178, allocations: 12 kB / 475.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.3182, allocations: 19.98 kB / 475.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.833e-05/0.3182, allocations: 35.89 kB / 475.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.3183, allocations: 20.11 kB / 475.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000868/0.3191, allocations: 0.6054 MB / 475.8 MB, free: 9.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3191, allocations: 0 / 475.8 MB, free: 9.746 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001229/0.3204, allocations: 348 kB / 476.1 MB, free: 9.406 MB / 382.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.0002403/0.3206, allocations: 126.7 kB / 476.2 MB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.3224, allocations: 0.9341 MB / 477.2 MB, free: 8.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3224, allocations: 3.938 kB / 477.2 MB, free: 8.316 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004342/0.3229, allocations: 279.8 kB / 477.5 MB, free: 8.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.324, allocations: 234.8 kB / 477.7 MB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.3274, allocations: 1.869 MB / 479.6 MB, free: 5.871 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000718/0.3281, allocations: 1.025 MB / 480.6 MB, free: 4.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.3283, allocations: 63.44 kB / 480.6 MB, free: 4.754 MB / 382.1 MB Notification: Performance of SimCode: time 1.894e-06/0.3283, allocations: 0 / 480.6 MB, free: 4.754 MB / 382.1 MB Notification: Performance of Templates: time 0.02506/0.3534, allocations: 16.98 MB / 497.6 MB, free: 3.805 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/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: 9.171283083036542]