Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002001/0.002001, allocations: 187.5 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 225.7 MB / 252.5 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 43.92 kB / 370.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2685, allocations: 52.19 MB / 423.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008705/0.2772, allocations: 6.348 MB / 429.4 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004067/0.2813, allocations: 2.181 MB / 431.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004725/0.2817, allocations: 31.88 kB / 431.6 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.2831, allocations: 465.1 kB / 432.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008211/0.2839, allocations: 413 kB / 432.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000394/0.2843, allocations: 203.7 kB / 432.7 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001329/0.2857, allocations: 1.21 MB / 433.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005725/0.2862, allocations: 320.5 kB / 434.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006072/0.2868, allocations: 466.2 kB / 434.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000564/0.2874, allocations: 433.7 kB / 435.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.2875, allocations: 116 kB / 435.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.2878, allocations: 152 kB / 435.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002417/0.2881, allocations: 227.2 kB / 435.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000442/0.2885, allocations: 453.9 kB / 436 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00167/0.2902, allocations: 1.448 MB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2902, allocations: 0 / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2902, allocations: 0 / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.2902, allocations: 8.047 kB / 437.5 MB, free: 15.99 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002261/0.2925, allocations: 1.201 MB / 438.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.2925, allocations: 8.031 kB / 438.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004973/0.293, allocations: 148.2 kB / 438.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.2944, allocations: 0.5844 MB / 439.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.661e-05/0.2945, allocations: 58.38 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002845/0.2948, allocations: 80.33 kB / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/0.2965, allocations: 0.8334 MB / 440.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/0.2966, allocations: 4 kB / 440.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-05/0.2967, allocations: 31.94 kB / 440.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.2967, allocations: 20 kB / 440.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.2978, allocations: 0.5192 MB / 441 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004654/0.3025, allocations: 2.928 MB / 443.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.303, allocations: 217.5 kB / 444.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.3033, allocations: 104.8 kB / 444.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.3033, allocations: 4 kB / 444.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.3034, allocations: 38.56 kB / 444.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.174e-06/0.3034, allocations: 0 / 444.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002193/0.3056, allocations: 0.8979 MB / 445.1 MB, free: 7.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000194/0.3058, allocations: 93.28 kB / 445.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.3068, allocations: 0.6797 MB / 445.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.3068, allocations: 29.7 kB / 445.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004868/0.3073, allocations: 0.511 MB / 446.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.3074, allocations: 111.1 kB / 446.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.3076, allocations: 114.2 kB / 446.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002402/0.3078, allocations: 370.8 kB / 447 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.3081, allocations: 125.2 kB / 447.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006005/0.3087, allocations: 443.9 kB / 447.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008649/0.3095, allocations: 0.5755 MB / 448.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.3095, allocations: 4 kB / 448.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001142/0.3107, allocations: 0.6031 MB / 448.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.3107, allocations: 11.94 kB / 448.8 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.3107, allocations: 8.719 kB / 448.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/0.3109, allocations: 40.84 kB / 448.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004497/0.3114, allocations: 131.8 kB / 449 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.3126, allocations: 1.273 MB / 450.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004471/0.3131, allocations: 27.98 kB / 450.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.3131, allocations: 36.09 kB / 450.3 MB, free: 2.383 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0003443/0.3134, allocations: 237.5 kB / 450.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.3136, allocations: 71.53 kB / 450.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00067/0.3143, allocations: 321.1 kB / 450.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3143, allocations: 4 kB / 450.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3143, allocations: 11.88 kB / 450.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.3143, allocations: 4 kB / 450.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.3159, allocations: 0.9007 MB / 451.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3159, allocations: 0 / 451.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.3161, allocations: 59.91 kB / 451.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-05/0.3162, allocations: 25.06 kB / 451.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.3162, allocations: 8 kB / 451.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.3175, allocations: 1.237 MB / 453.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-05/0.3175, allocations: 3.938 kB / 453.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009977/0.3185, allocations: 0.561 MB / 453.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.3187, allocations: 91.52 kB / 453.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/0.3188, allocations: 11.98 kB / 453.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.3191, allocations: 15.98 kB / 453.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.767e-05/0.3192, allocations: 23.97 kB / 453.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.3192, allocations: 11.98 kB / 453.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006444/0.3199, allocations: 467 kB / 454.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3199, allocations: 0 / 454.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000679/0.3205, allocations: 156 kB / 454.5 MB, free: 13.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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.0002078/0.3207, allocations: 119.3 kB / 454.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.3217, allocations: 456.2 kB / 455 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3218, allocations: 320 / 455 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.3222, allocations: 242.4 kB / 455.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008856/0.323, allocations: 159.2 kB / 455.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.3256, allocations: 1.438 MB / 456.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.326, allocations: 348.5 kB / 457.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002791/0.3262, allocations: 81.48 kB / 457.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.3263, allocations: 51.42 kB / 457.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3263, allocations: 0 / 457.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of Templates: time 0.01847/0.3448, allocations: 9.123 MB / 466.5 MB, free: 2.055 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.889644430950284]