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.001311/0.001311, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.001608/0.001608, allocations: 158.8 kB / 23.95 MB, free: 4.152 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.449/1.449, allocations: 177 MB / 204.1 MB, free: 9.156 MB / 190.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 1.923e-06/1.923e-06, allocations: 0 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.913e-05/3.105e-05, allocations: 2.281 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01057/0.0106, allocations: 7.26 MB / 332.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005825/0.01642, allocations: 2.577 MB / 334.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.01769, allocations: 35 kB / 334.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.01958, allocations: 0.5109 MB / 335.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00177/0.02135, allocations: 483.9 kB / 335.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.02235, allocations: 371 kB / 336.2 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00234/0.02469, allocations: 1.571 MB / 337.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009825/0.02568, allocations: 383.4 kB / 338.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.02711, allocations: 0.8671 MB / 339.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007606/0.02787, allocations: 439.2 kB / 339.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002179/0.02809, allocations: 139.1 kB / 339.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004268/0.02852, allocations: 178.8 kB / 339.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.02881, allocations: 286.9 kB / 340.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006175/0.02942, allocations: 458.8 kB / 340.5 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002256/0.03168, allocations: 1.729 MB / 342.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.03168, allocations: 0 / 342.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.03169, allocations: 0 / 342.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.03171, allocations: 4 kB / 342.3 MB, free: 3.754 MB / 302.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.0028/0.03451, allocations: 1.45 MB / 343.7 MB, free: 2.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.03455, allocations: 11.98 kB / 343.7 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007013/0.03525, allocations: 200 kB / 343.9 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.03671, allocations: 0.7205 MB / 344.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.107e-05/0.03678, allocations: 74.38 kB / 344.7 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.03695, allocations: 108.3 kB / 344.8 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.03886, allocations: 1.067 MB / 345.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.0389, allocations: 4 kB / 345.9 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-05/0.039, allocations: 39.94 kB / 345.9 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.03902, allocations: 24 kB / 345.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.04036, allocations: 0.6402 MB / 346.6 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005706/0.04607, allocations: 3.548 MB / 350.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.04721, allocations: 414.3 kB / 350.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.04754, allocations: 156.8 kB / 350.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.233e-05/0.04758, allocations: 4 kB / 350.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.04762, allocations: 38.56 kB / 350.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.214e-06/0.04762, allocations: 0 / 350.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002706/0.05033, allocations: 1.186 MB / 351.9 MB, free: 9.699 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.05043, allocations: 140.5 kB / 352.1 MB, free: 9.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.05163, allocations: 0.8252 MB / 352.9 MB, free: 8.695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.05168, allocations: 37.7 kB / 352.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005198/0.0522, allocations: 0.6047 MB / 353.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.05234, allocations: 154.7 kB / 353.7 MB, free: 7.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.05257, allocations: 138.6 kB / 353.8 MB, free: 7.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.05275, allocations: 338 kB / 354.1 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004008/0.05315, allocations: 172.8 kB / 354.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007359/0.05388, allocations: 0.5701 MB / 354.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.05501, allocations: 0.6792 MB / 355.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.05501, allocations: 4 kB / 355.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001491/0.05651, allocations: 0.7436 MB / 356.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.05653, allocations: 8 kB / 356.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.05655, allocations: 15.94 kB / 356.3 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.05675, allocations: 40.78 kB / 356.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.05741, allocations: 164.1 kB / 356.5 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.05871, allocations: 1.256 MB / 357.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006015/0.05932, allocations: 43.94 kB / 357.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.757e-05/0.05937, allocations: 39.98 kB / 357.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006815/0.06006, allocations: 346.1 kB / 358.2 MB, free: 2.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007208/0.06078, allocations: 0.5547 MB / 358.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009911/0.06177, allocations: 0.6712 MB / 359.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.013e-06/0.06177, allocations: 4 kB / 359.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00134/0.06311, allocations: 0.7166 MB / 360.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.06313, allocations: 11.94 kB / 360.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.06314, allocations: 12 kB / 360.2 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001114/0.06325, allocations: 32.88 kB / 360.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005915/0.06385, allocations: 171.7 kB / 360.4 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.06508, allocations: 1.26 MB / 361.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/0.06568, allocations: 40.09 kB / 361.7 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.615e-05/0.06574, allocations: 36 kB / 361.7 MB, free: 14.97 MB / 334.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.0002523/0.06599, allocations: 224 kB / 361.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.06614, allocations: 87.44 kB / 362 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009555/0.0671, allocations: 438.2 kB / 362.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.06711, allocations: 4 kB / 362.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.06711, allocations: 0 / 362.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.06711, allocations: 4 kB / 362.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.06922, allocations: 1.137 MB / 363.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.06922, allocations: 4 kB / 363.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004009/0.06962, allocations: 75.89 kB / 363.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001001/0.06972, allocations: 25.08 kB / 363.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.06975, allocations: 11.98 kB / 363.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.07085, allocations: 1.237 MB / 364.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.433e-06/0.07086, allocations: 8.016 kB / 364.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.07213, allocations: 0.7111 MB / 365.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002996/0.07243, allocations: 115.4 kB / 365.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.07254, allocations: 16 kB / 365.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000439/0.07298, allocations: 19.98 kB / 365.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.445e-05/0.07306, allocations: 35.81 kB / 365.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.07309, allocations: 19.94 kB / 365.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009129/0.074, allocations: 0.5459 MB / 366.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.074, allocations: 4 kB / 366.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001364/0.07537, allocations: 344 kB / 366.7 MB, free: 9.711 MB / 334.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.0002813/0.07565, allocations: 131.1 kB / 366.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.07759, allocations: 0.9264 MB / 367.8 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.0776, allocations: 4.75 kB / 367.8 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004871/0.07808, allocations: 286.6 kB / 368.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.07924, allocations: 225 kB / 368.3 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.08258, allocations: 1.704 MB / 370 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.08311, allocations: 447.3 kB / 370.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004787/0.08359, allocations: 114.9 kB / 370.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.08375, allocations: 56.48 kB / 370.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of SimCode: time 1.032e-06/0.08376, allocations: 0 / 370.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of Templates: time 0.02278/0.1065, allocations: 10.48 MB / 381.1 MB, free: 11.42 MB / 350.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: 4.887530189007521]