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.001192/0.001192, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.007171/0.007171, allocations: 162.4 kB / 24.7 MB, free: 9.418 MB / 18.57 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 0.877/0.877, allocations: 177.2 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 2.435e-06/2.435e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.124e-05/4.367e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00668/0.006724, allocations: 7.275 MB / 333.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003044/0.009768, allocations: 2.571 MB / 335.7 MB, free: 5.543 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004141/0.01018, allocations: 35.81 kB / 335.7 MB, free: 5.508 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009462/0.01113, allocations: 0.5121 MB / 336.2 MB, free: 4.992 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000574/0.0117, allocations: 484.2 kB / 336.7 MB, free: 4.516 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004372/0.01214, allocations: 371.4 kB / 337.1 MB, free: 4.152 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009571/0.0131, allocations: 1.557 MB / 338.6 MB, free: 2.586 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004407/0.01354, allocations: 392 kB / 339 MB, free: 2.188 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006728/0.01421, allocations: 0.865 MB / 339.9 MB, free: 1.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.01459, allocations: 438.5 kB / 340.3 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.01469, allocations: 140 kB / 340.4 MB, free: 0.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001864/0.01488, allocations: 176 kB / 340.6 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.01501, allocations: 294.8 kB / 340.9 MB, free: 296 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002797/0.01529, allocations: 455 kB / 341.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.01646, allocations: 1.729 MB / 343.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.01647, allocations: 0 / 343.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.01647, allocations: 0 / 343.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.01648, allocations: 0 / 343.1 MB, free: 14.11 MB / 314.7 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.001471/0.01795, allocations: 1.446 MB / 344.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.01799, allocations: 12.03 kB / 344.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003268/0.01831, allocations: 196 kB / 344.7 MB, free: 12.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008605/0.01917, allocations: 0.7244 MB / 345.5 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.01921, allocations: 74.31 kB / 345.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.687e-05/0.01931, allocations: 100.3 kB / 345.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.02032, allocations: 1.066 MB / 346.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.02034, allocations: 4 kB / 346.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.325e-05/0.0204, allocations: 40 kB / 346.7 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.02041, allocations: 24 kB / 346.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00075/0.02116, allocations: 0.6479 MB / 347.4 MB, free: 9.652 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.02419, allocations: 3.54 MB / 350.9 MB, free: 5.906 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006059/0.0248, allocations: 418.7 kB / 351.4 MB, free: 5.492 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.02497, allocations: 156.7 kB / 351.5 MB, free: 5.336 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.025, allocations: 4 kB / 351.5 MB, free: 5.332 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.02502, allocations: 38.56 kB / 351.5 MB, free: 5.285 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 1.673e-06/0.02502, allocations: 0 / 351.5 MB, free: 5.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.001482/0.0265, allocations: 1.178 MB / 352.7 MB, free: 4.074 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.02656, allocations: 132.5 kB / 352.9 MB, free: 3.914 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/0.02723, allocations: 0.8369 MB / 353.7 MB, free: 3.066 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.02726, allocations: 29.7 kB / 353.7 MB, free: 3.031 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.02752, allocations: 0.6086 MB / 354.3 MB, free: 2.414 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.437e-05/0.0276, allocations: 158.7 kB / 354.5 MB, free: 2.258 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.02771, allocations: 142.6 kB / 354.6 MB, free: 2.109 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.109e-05/0.02779, allocations: 333.9 kB / 354.9 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.028, allocations: 176.8 kB / 355.1 MB, free: 1.602 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.02835, allocations: 0.5585 MB / 355.7 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005447/0.02889, allocations: 0.687 MB / 356.4 MB, free: 40 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.0289, allocations: 4 kB / 356.4 MB, free: 36 kB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000726/0.02962, allocations: 0.7396 MB / 357.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.02964, allocations: 8 kB / 357.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.02965, allocations: 12 kB / 357.1 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001096/0.02976, allocations: 40.78 kB / 357.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.03005, allocations: 168.2 kB / 357.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006505/0.0307, allocations: 1.26 MB / 358.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.03095, allocations: 43.92 kB / 358.6 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.03098, allocations: 36 kB / 358.7 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000346/0.03133, allocations: 354.2 kB / 359 MB, free: 13.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003343/0.03166, allocations: 0.5545 MB / 359.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000507/0.03217, allocations: 0.6634 MB / 360.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.524e-06/0.03217, allocations: 4 kB / 360.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006666/0.03284, allocations: 0.7203 MB / 361 MB, free: 11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/0.03284, allocations: 8 kB / 361 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.03285, allocations: 16.12 kB / 361 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.746e-05/0.03291, allocations: 36.84 kB / 361 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.03318, allocations: 163.7 kB / 361.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000551/0.03373, allocations: 1.256 MB / 362.4 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.03397, allocations: 40.09 kB / 362.5 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.03399, allocations: 40 kB / 362.5 MB, free: 9.344 MB / 330.7 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.0001232/0.03412, allocations: 224 kB / 362.7 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.03419, allocations: 95.38 kB / 362.8 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004785/0.03467, allocations: 422.3 kB / 363.2 MB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.03467, allocations: 11.94 kB / 363.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.03467, allocations: 8 kB / 363.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.03468, allocations: 3.984 kB / 363.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.0358, allocations: 1.141 MB / 364.4 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.0358, allocations: 0 / 364.4 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.03599, allocations: 76.22 kB / 364.5 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.367e-05/0.03604, allocations: 28.83 kB / 364.5 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.03606, allocations: 12 kB / 364.5 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000542/0.0366, allocations: 1.244 MB / 365.8 MB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.0366, allocations: 0 / 365.8 MB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.03724, allocations: 0.7072 MB / 366.5 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.03739, allocations: 127.4 kB / 366.6 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.03743, allocations: 8 kB / 366.6 MB, free: 5.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.03761, allocations: 27.92 kB / 366.6 MB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.769e-05/0.03766, allocations: 31.89 kB / 366.7 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.03767, allocations: 11.98 kB / 366.7 MB, free: 4.965 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004653/0.03814, allocations: 0.5537 MB / 367.2 MB, free: 4.414 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03814, allocations: 0 / 367.2 MB, free: 4.414 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006615/0.0388, allocations: 348 kB / 367.6 MB, free: 4.074 MB / 330.7 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.0001833/0.03898, allocations: 115.1 kB / 367.7 MB, free: 3.949 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009328/0.03992, allocations: 0.9379 MB / 368.6 MB, free: 2.988 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.03992, allocations: 0.875 kB / 368.6 MB, free: 2.988 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002388/0.04016, allocations: 278.5 kB / 368.9 MB, free: 2.703 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006384/0.0408, allocations: 233.5 kB / 369.1 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.04263, allocations: 1.744 MB / 370.9 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.0429, allocations: 435.4 kB / 371.3 MB, free: 228 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.04301, allocations: 64.48 kB / 371.3 MB, free: 164 kB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.04301, allocations: 0 / 371.3 MB, free: 164 kB / 330.7 MB Notification: Performance of Templates: time 0.01252/0.05553, allocations: 17.06 MB / 388.4 MB, free: 15.14 MB / 362.7 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/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_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: 5.983328991569579]