Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 116.5 kB / 18.45 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 230.6 MB / 254.8 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 47.92 kB / 374.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1026, allocations: 53.33 MB / 427.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.212/0.3147, allocations: 8.206 MB / 435.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004826/0.3195, allocations: 2.735 MB / 438.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001373/0.3209, allocations: 36.69 kB / 438.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001817/0.3227, allocations: 0.562 MB / 439 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001591/0.3243, allocations: 467.2 kB / 439.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008555/0.3251, allocations: 353.7 kB / 439.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.327, allocations: 1.504 MB / 441.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006456/0.3276, allocations: 431.6 kB / 441.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008343/0.3285, allocations: 0.5779 MB / 442.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006605/0.3291, allocations: 0.6039 MB / 442.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001741/0.3293, allocations: 138.6 kB / 443.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003623/0.3297, allocations: 176.6 kB / 443.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.3298, allocations: 289.8 kB / 443.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004665/0.3303, allocations: 0.6621 MB / 444.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002159/0.3325, allocations: 1.727 MB / 445.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.3325, allocations: 2.312 kB / 445.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3325, allocations: 4 kB / 445.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.691e-05/0.3325, allocations: 0 / 445.9 MB, free: 2.18 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.002493/0.335, allocations: 1.549 MB / 447.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.335, allocations: 9.719 kB / 447.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006351/0.3357, allocations: 195.1 kB / 447.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.3369, allocations: 0.8026 MB / 448.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.451e-05/0.3369, allocations: 77.34 kB / 448.6 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.3371, allocations: 101.8 kB / 448.7 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.3386, allocations: 0.9573 MB / 449.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/0.3387, allocations: 3.453 kB / 449.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.196e-05/0.3388, allocations: 41.19 kB / 449.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.3388, allocations: 28.5 kB / 449.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.3401, allocations: 0.6368 MB / 450.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006196/0.3463, allocations: 4.101 MB / 454.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3474, allocations: 413 kB / 454.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002906/0.3477, allocations: 153.4 kB / 455 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.3477, allocations: 3.531 kB / 455 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.3477, allocations: 37.69 kB / 455 MB, free: 12.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.856e-06/0.3477, allocations: 4 kB / 455 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002817/0.3506, allocations: 1.334 MB / 456.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.169e-05/0.3506, allocations: 141.5 kB / 456.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.352, allocations: 0.8905 MB / 457.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.352, allocations: 31.69 kB / 457.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005604/0.3526, allocations: 0.6034 MB / 458 MB, free: 10.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.3527, allocations: 155.9 kB / 458.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.3529, allocations: 136.3 kB / 458.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3531, allocations: 331.2 kB / 458.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/0.3534, allocations: 181.9 kB / 458.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000625/0.354, allocations: 494.2 kB / 459.3 MB, free: 9.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.355, allocations: 0.6861 MB / 460 MB, free: 8.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.3551, allocations: 2.688 kB / 460 MB, free: 8.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001394/0.3564, allocations: 0.7556 MB / 460.7 MB, free: 8.586 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3565, allocations: 9.094 kB / 460.7 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.3565, allocations: 15.78 kB / 460.8 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.3567, allocations: 36 kB / 460.8 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.3572, allocations: 170.2 kB / 461 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.3585, allocations: 1.39 MB / 462.4 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007667/0.3593, allocations: 42.83 kB / 462.4 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.892e-05/0.3593, allocations: 38.12 kB / 462.4 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006526/0.36, allocations: 349.4 kB / 462.8 MB, free: 6.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005881/0.3606, allocations: 488.1 kB / 463.2 MB, free: 6.324 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008905/0.3615, allocations: 0.6527 MB / 463.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.172e-06/0.3615, allocations: 6.344 kB / 463.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001267/0.3627, allocations: 0.7336 MB / 464.6 MB, free: 5.328 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3628, allocations: 10 kB / 464.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3628, allocations: 10.5 kB / 464.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000105/0.3629, allocations: 27.83 kB / 464.7 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005785/0.3635, allocations: 175.5 kB / 464.9 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.3647, allocations: 1.386 MB / 466.2 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007304/0.3654, allocations: 34.33 kB / 466.3 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/0.3655, allocations: 37.81 kB / 466.3 MB, free: 3.812 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.0002716/0.3657, allocations: 238 kB / 466.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.3659, allocations: 99.3 kB / 466.6 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009302/0.3669, allocations: 436.7 kB / 467.1 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3669, allocations: 4.203 kB / 467.1 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3669, allocations: 2 kB / 467.1 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.3669, allocations: 7.922 kB / 467.1 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/0.3693, allocations: 1.376 MB / 468.5 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.3693, allocations: 2.219 kB / 468.5 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003806/0.3697, allocations: 75.47 kB / 468.5 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/0.3698, allocations: 25.62 kB / 468.6 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.3698, allocations: 8.375 kB / 468.6 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.3709, allocations: 1.376 MB / 469.9 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.3709, allocations: 6.312 kB / 470 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.3723, allocations: 0.7021 MB / 470.7 MB, free: 304 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004724/0.3728, allocations: 221.3 kB / 470.9 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.3729, allocations: 12.88 kB / 470.9 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004222/0.3733, allocations: 19.95 kB / 470.9 MB, free: 76 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/0.3734, allocations: 28.73 kB / 470.9 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.3734, allocations: 14.28 kB / 470.9 MB, free: 56 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.3744, allocations: 0.6049 MB / 471.5 MB, free: 15.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3744, allocations: 4 kB / 471.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001393/0.3758, allocations: 346.1 kB / 471.9 MB, free: 15.66 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.0002671/0.3761, allocations: 126.8 kB / 472 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.3779, allocations: 0.934 MB / 472.9 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.378, allocations: 1.469 kB / 472.9 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004621/0.3784, allocations: 281.2 kB / 473.2 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.3797, allocations: 261.7 kB / 473.5 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.3831, allocations: 1.867 MB / 475.3 MB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006776/0.3838, allocations: 1.022 MB / 476.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.384, allocations: 61.94 kB / 476.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.384, allocations: 0 / 476.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of Templates: time 0.02584/0.4099, allocations: 16.98 MB / 493.4 MB, free: 12.96 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.243953966011759]