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.001802/0.001802, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.002206/0.002206, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.503/1.503, allocations: 230.2 MB / 255.1 MB, free: 15.39 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.001885/0.001885, allocations: 67.89 kB / 374.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.1007, allocations: 53.32 MB / 427.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01032/0.111, allocations: 8.217 MB / 436.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004923/0.1159, allocations: 2.742 MB / 438.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008605/0.1168, allocations: 27.94 kB / 438.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.1183, allocations: 0.5551 MB / 439.4 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.1195, allocations: 468.5 kB / 439.9 MB, free: 8.438 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007901/0.1203, allocations: 370.1 kB / 440.2 MB, free: 8.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001824/0.1221, allocations: 1.503 MB / 441.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007124/0.1228, allocations: 423.5 kB / 442.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008864/0.1237, allocations: 0.5564 MB / 442.7 MB, free: 5.566 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007747/0.1245, allocations: 0.6104 MB / 443.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.1247, allocations: 140 kB / 443.4 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003552/0.125, allocations: 176 kB / 443.6 MB, free: 4.645 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.1253, allocations: 290.9 kB / 443.9 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006492/0.1259, allocations: 0.6647 MB / 444.6 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002048/0.128, allocations: 1.728 MB / 446.3 MB, free: 1.957 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.128, allocations: 0 / 446.3 MB, free: 1.957 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.128, allocations: 0 / 446.3 MB, free: 1.957 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.128, allocations: 0 / 446.3 MB, free: 1.957 MB / 366.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.00274/0.1307, allocations: 1.537 MB / 447.8 MB, free: 376 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.1308, allocations: 8.031 kB / 447.8 MB, free: 368 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006365/0.1314, allocations: 196 kB / 448 MB, free: 172 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1756/0.3071, allocations: 0.7998 MB / 448.8 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.511e-05/0.3071, allocations: 75.91 kB / 448.9 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.3073, allocations: 102.2 kB / 449 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.3088, allocations: 0.957 MB / 449.9 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.3088, allocations: 10.22 kB / 450 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.156e-05/0.3089, allocations: 42.11 kB / 450 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.3089, allocations: 29.09 kB / 450 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.31, allocations: 0.6346 MB / 450.7 MB, free: 24.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004739/0.3148, allocations: 4.086 MB / 454.7 MB, free: 21.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.3158, allocations: 420.1 kB / 455.2 MB, free: 21.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002816/0.316, allocations: 153 kB / 455.3 MB, free: 21.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.3161, allocations: 9.109 kB / 455.3 MB, free: 21.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.3161, allocations: 36.69 kB / 455.4 MB, free: 21.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.174e-06/0.3161, allocations: 0 / 455.4 MB, free: 21.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.00235/0.3184, allocations: 1.335 MB / 456.7 MB, free: 20.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.3185, allocations: 133.5 kB / 456.8 MB, free: 20.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.3197, allocations: 0.8956 MB / 457.7 MB, free: 19.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.3197, allocations: 35.86 kB / 457.7 MB, free: 19.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003212/0.32, allocations: 0.6071 MB / 458.4 MB, free: 19.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.094e-05/0.3201, allocations: 150.9 kB / 458.5 MB, free: 19.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.3203, allocations: 143 kB / 458.6 MB, free: 19.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.719e-05/0.3203, allocations: 338.2 kB / 459 MB, free: 18.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003268/0.3207, allocations: 176.2 kB / 459.1 MB, free: 18.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004384/0.3211, allocations: 0.4953 MB / 459.6 MB, free: 18.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008889/0.322, allocations: 0.6785 MB / 460.3 MB, free: 17.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.322, allocations: 4.531 kB / 460.3 MB, free: 17.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001328/0.3233, allocations: 0.7498 MB / 461.1 MB, free: 17.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.3234, allocations: 13.97 kB / 461.1 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.3234, allocations: 10.88 kB / 461.1 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001825/0.3236, allocations: 34.94 kB / 461.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005689/0.3241, allocations: 170.6 kB / 461.3 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000744/0.3249, allocations: 1.382 MB / 462.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00061/0.3255, allocations: 45.36 kB / 462.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.3255, allocations: 35.66 kB / 462.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005576/0.3261, allocations: 354.3 kB / 463.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000368/0.3265, allocations: 488.9 kB / 463.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006302/0.3271, allocations: 0.6551 MB / 464.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.532e-06/0.3271, allocations: 7.609 kB / 464.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001096/0.3282, allocations: 0.7302 MB / 465 MB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3282, allocations: 14.52 kB / 465 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.3282, allocations: 10.75 kB / 465 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.453e-05/0.3283, allocations: 38.95 kB / 465 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005155/0.3288, allocations: 163.3 kB / 465.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006249/0.3295, allocations: 1.392 MB / 466.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005888/0.33, allocations: 35.14 kB / 466.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/0.3301, allocations: 32.41 kB / 466.7 MB, free: 12.68 MB / 366.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.0001707/0.3303, allocations: 235.5 kB / 466.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.3304, allocations: 100.2 kB / 467 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000817/0.3312, allocations: 436.8 kB / 467.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.3312, allocations: 5.547 kB / 467.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3312, allocations: 0.9062 kB / 467.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3312, allocations: 1.688 kB / 467.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.3333, allocations: 1.372 MB / 468.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.3333, allocations: 2.531 kB / 468.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.3336, allocations: 83.44 kB / 468.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.196e-05/0.3337, allocations: 22.36 kB / 468.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.3338, allocations: 13.62 kB / 468.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006214/0.3344, allocations: 1.372 MB / 470.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3344, allocations: 2.703 kB / 470.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.3354, allocations: 0.7175 MB / 471 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.3356, allocations: 211.7 kB / 471.2 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-05/0.3357, allocations: 7.531 kB / 471.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.3362, allocations: 21.39 kB / 471.2 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.779e-05/0.3362, allocations: 32.89 kB / 471.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.3363, allocations: 15.53 kB / 471.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007915/0.337, allocations: 0.6089 MB / 471.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.337, allocations: 0 / 471.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001289/0.3383, allocations: 351.6 kB / 472.2 MB, free: 9.043 MB / 366.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.0001838/0.3385, allocations: 120 kB / 472.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.34, allocations: 0.9256 MB / 473.3 MB, free: 8.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.34, allocations: 4.062 kB / 473.3 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003823/0.3404, allocations: 286.6 kB / 473.6 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.3415, allocations: 237.7 kB / 473.8 MB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.3441, allocations: 1.877 MB / 475.7 MB, free: 7.129 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.3446, allocations: 1.023 MB / 476.7 MB, free: 6.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.3448, allocations: 62.5 kB / 476.8 MB, free: 6.402 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3448, allocations: 0 / 476.8 MB, free: 6.402 MB / 366.1 MB Notification: Performance of Templates: time 0.02304/0.3678, allocations: 16.98 MB / 493.7 MB, free: 12.68 MB / 382.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_2/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_2/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.219565755920485]