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.001798/0.001798, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002221/0.002221, allocations: 207.8 kB / 23.73 MB, free: 4.391 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.612/1.612, allocations: 230.5 MB / 257.4 MB, free: 7.746 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.002126/0.002126, allocations: 59.91 kB / 378.2 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3135, allocations: 53.41 MB / 431.7 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009716/0.3232, allocations: 7.245 MB / 438.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005065/0.3283, allocations: 2.571 MB / 441.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008291/0.3291, allocations: 27.88 kB / 441.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001398/0.3305, allocations: 0.5031 MB / 442 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.3315, allocations: 472.5 kB / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007758/0.3323, allocations: 362.7 kB / 442.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001915/0.3342, allocations: 1.503 MB / 444.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008041/0.335, allocations: 399.9 kB / 444.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009682/0.336, allocations: 0.5913 MB / 445.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007216/0.3367, allocations: 0.5168 MB / 445.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001868/0.3369, allocations: 140 kB / 446 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003684/0.3373, allocations: 172 kB / 446.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002479/0.3375, allocations: 290.9 kB / 446.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006054/0.3381, allocations: 0.5287 MB / 446.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002181/0.3403, allocations: 1.743 MB / 448.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.3403, allocations: 4 kB / 448.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3403, allocations: 0 / 448.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.169e-05/0.3404, allocations: 0 / 448.7 MB, free: 5.371 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.002623/0.343, allocations: 1.469 MB / 450.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.343, allocations: 11.98 kB / 450.2 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006255/0.3436, allocations: 199.9 kB / 450.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.3451, allocations: 0.7213 MB / 451.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.962e-05/0.3452, allocations: 77.94 kB / 451.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.3453, allocations: 103.9 kB / 451.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.3471, allocations: 1.063 MB / 452.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/0.3471, allocations: 3.938 kB / 452.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.423e-05/0.3472, allocations: 48 kB / 452.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.653e-05/0.3472, allocations: 24 kB / 452.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.3484, allocations: 0.6363 MB / 453 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005265/0.3537, allocations: 3.54 MB / 456.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.3547, allocations: 411.2 kB / 457 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.355, allocations: 152.8 kB / 457.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.3551, allocations: 4 kB / 457.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.3551, allocations: 34.56 kB / 457.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.944e-06/0.3551, allocations: 0 / 457.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002504/0.3576, allocations: 1.185 MB / 458.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.935e-05/0.3577, allocations: 136.5 kB / 458.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.3588, allocations: 0.8291 MB / 459.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.3589, allocations: 37.7 kB / 459.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004783/0.3593, allocations: 0.6086 MB / 460 MB, free: 9.656 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3595, allocations: 158.6 kB / 460.1 MB, free: 9.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/0.3597, allocations: 142.6 kB / 460.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.3598, allocations: 334 kB / 460.6 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.3602, allocations: 168.8 kB / 460.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006966/0.3609, allocations: 0.5738 MB / 461.3 MB, free: 8.105 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009814/0.3619, allocations: 0.6828 MB / 462 MB, free: 7.277 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3619, allocations: 4 kB / 462 MB, free: 7.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001251/0.3631, allocations: 0.7432 MB / 462.7 MB, free: 6.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3631, allocations: 11.94 kB / 462.8 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.3632, allocations: 16.7 kB / 462.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001716/0.3633, allocations: 44.83 kB / 462.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005805/0.3639, allocations: 163.7 kB / 463 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.365, allocations: 1.26 MB / 464.2 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005125/0.3655, allocations: 40.09 kB / 464.3 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.958e-05/0.3656, allocations: 44 kB / 464.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005949/0.3662, allocations: 354 kB / 464.7 MB, free: 4.492 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005985/0.3668, allocations: 0.5504 MB / 465.2 MB, free: 3.773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008891/0.3677, allocations: 0.6636 MB / 465.9 MB, free: 2.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.481e-06/0.3677, allocations: 8 kB / 465.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00119/0.3689, allocations: 0.7127 MB / 466.6 MB, free: 2.234 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.3689, allocations: 8 kB / 466.6 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.3689, allocations: 12 kB / 466.6 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-05/0.369, allocations: 36.78 kB / 466.7 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000544/0.3695, allocations: 163.7 kB / 466.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.3706, allocations: 1.268 MB / 468.1 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005261/0.3711, allocations: 35.94 kB / 468.1 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.972e-05/0.3711, allocations: 36 kB / 468.1 MB, free: 0.5781 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.0002469/0.3714, allocations: 228.2 kB / 468.4 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.3715, allocations: 91.38 kB / 468.5 MB, free: 268 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009089/0.3724, allocations: 434.5 kB / 468.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3724, allocations: 4 kB / 468.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.3724, allocations: 0 / 468.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.3725, allocations: 3.984 kB / 468.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.3745, allocations: 1.137 MB / 470 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.3745, allocations: 8.219 kB / 470 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.3748, allocations: 75.91 kB / 470.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001046/0.3749, allocations: 32.72 kB / 470.1 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.375, allocations: 8 kB / 470.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/0.376, allocations: 1.241 MB / 471.4 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.376, allocations: 8.188 kB / 471.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.3771, allocations: 0.7032 MB / 472.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.3774, allocations: 123.4 kB / 472.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.982e-05/0.3775, allocations: 12 kB / 472.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003815/0.3778, allocations: 23.98 kB / 472.3 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.3779, allocations: 35.83 kB / 472.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.3779, allocations: 15.98 kB / 472.3 MB, free: 12.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008204/0.3788, allocations: 0.5459 MB / 472.9 MB, free: 11.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3788, allocations: 0 / 472.9 MB, free: 11.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001226/0.38, allocations: 348 kB / 473.2 MB, free: 11.31 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.0002235/0.3802, allocations: 123.1 kB / 473.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.3819, allocations: 0.9348 MB / 474.3 MB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.382, allocations: 8.062 kB / 474.3 MB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004396/0.3824, allocations: 274.4 kB / 474.5 MB, free: 9.938 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.3835, allocations: 229.2 kB / 474.8 MB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00335/0.3869, allocations: 1.823 MB / 476.6 MB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.3874, allocations: 439.3 kB / 477 MB, free: 7.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004705/0.3878, allocations: 122.8 kB / 477.1 MB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.388, allocations: 55.44 kB / 477.2 MB, free: 7.199 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.388, allocations: 0 / 477.2 MB, free: 7.199 MB / 382.1 MB Notification: Performance of Templates: time 0.02166/0.4096, allocations: 11.92 MB / 489.1 MB, free: 11.49 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/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: 5.299768401309848]