Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.0007663/0.0007663, 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.003979/0.003979, allocations: 161 kB / 24.7 MB, free: 9.41 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.84/0.84, allocations: 177.1 MB / 205 MB, free: 5.738 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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.249e-05, allocations: 6.219 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008061/0.008084, allocations: 10.58 MB / 336.4 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004265/0.01235, allocations: 3.148 MB / 339.6 MB, free: 1.633 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005554/0.0129, allocations: 39.88 kB / 339.6 MB, free: 1.594 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.01391, allocations: 0.6399 MB / 340.3 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009191/0.01483, allocations: 0.8295 MB / 341.1 MB, free: 112 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.01524, allocations: 399.5 kB / 341.5 MB, free: 15.72 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.01664, allocations: 2.513 MB / 344 MB, free: 13.2 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006013/0.01725, allocations: 0.6075 MB / 344.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.01851, allocations: 1.403 MB / 346 MB, free: 11.13 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005327/0.01904, allocations: 0.7126 MB / 346.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.0192, allocations: 228 kB / 346.9 MB, free: 10.2 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.01944, allocations: 268 kB / 347.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001927/0.01963, allocations: 466.2 kB / 347.7 MB, free: 9.477 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004338/0.02007, allocations: 0.7405 MB / 348.4 MB, free: 8.734 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.02169, allocations: 2.839 MB / 351.2 MB, free: 5.887 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.02169, allocations: 0 / 351.2 MB, free: 5.887 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.02169, allocations: 0 / 351.2 MB, free: 5.887 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.02171, allocations: 0 / 351.2 MB, free: 5.887 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002306/0.02401, allocations: 2.117 MB / 353.3 MB, free: 3.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.02405, allocations: 12.03 kB / 353.4 MB, free: 3.719 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004568/0.02451, allocations: 299.4 kB / 353.7 MB, free: 3.426 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.02565, allocations: 1.039 MB / 354.7 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.379e-05/0.0257, allocations: 115.5 kB / 354.8 MB, free: 2.227 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.02584, allocations: 164.3 kB / 355 MB, free: 2.066 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.02738, allocations: 1.605 MB / 356.6 MB, free: 384 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.722e-05/0.02742, allocations: 11.95 kB / 356.6 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.778e-05/0.0275, allocations: 63.94 kB / 356.6 MB, free: 308 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.02752, allocations: 40 kB / 356.7 MB, free: 268 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.02877, allocations: 1.053 MB / 357.7 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004716/0.03348, allocations: 5.416 MB / 363.2 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008811/0.03436, allocations: 0.5657 MB / 363.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.03489, allocations: 426.7 kB / 364.1 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.03492, allocations: 8.656 kB / 364.1 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.03495, allocations: 39.22 kB / 364.2 MB, free: 8.453 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 1.833e-06/0.03495, allocations: 0 / 364.2 MB, free: 8.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.002752/0.0377, allocations: 2.162 MB / 366.3 MB, free: 6.258 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.03775, allocations: 111.5 kB / 366.5 MB, free: 6.125 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.03897, allocations: 1.18 MB / 367.6 MB, free: 4.934 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.039, allocations: 37.7 kB / 367.7 MB, free: 4.891 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003683/0.03937, allocations: 0.874 MB / 368.5 MB, free: 4.008 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.03949, allocations: 273.7 kB / 368.8 MB, free: 3.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.03966, allocations: 206.8 kB / 369 MB, free: 3.531 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.03976, allocations: 349.9 kB / 369.4 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.0401, allocations: 286.5 kB / 369.6 MB, free: 2.902 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005267/0.04063, allocations: 0.7886 MB / 370.4 MB, free: 1.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009127/0.04154, allocations: 1.088 MB / 371.5 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.04154, allocations: 4 kB / 371.5 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001334/0.04288, allocations: 1.253 MB / 372.8 MB, free: 15.31 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.0429, allocations: 12 kB / 372.8 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.04291, allocations: 19.98 kB / 372.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003061/0.04322, allocations: 131 kB / 372.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004251/0.04364, allocations: 255.6 kB / 373.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002459/0.0461, allocations: 4.24 MB / 377.4 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.04652, allocations: 55.97 kB / 377.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.04657, allocations: 52 kB / 377.5 MB, free: 10.24 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003891/0.04696, allocations: 357.6 kB / 377.9 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.04706, allocations: 135.1 kB / 378 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009864/0.04805, allocations: 0.8165 MB / 378.8 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.04805, allocations: 4 kB / 378.8 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.04806, allocations: 4 kB / 378.8 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.04806, allocations: 3.984 kB / 378.8 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.05035, allocations: 1.969 MB / 380.8 MB, free: 6.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.05035, allocations: 11.94 kB / 380.8 MB, free: 6.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002785/0.05063, allocations: 127.8 kB / 380.9 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002278/0.05086, allocations: 135 kB / 381.1 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.05088, allocations: 23.92 kB / 381.1 MB, free: 6.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.05307, allocations: 4.385 MB / 385.5 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.05307, allocations: 4 kB / 385.5 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.05434, allocations: 1.277 MB / 386.8 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.05459, allocations: 207 kB / 387 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.326e-05/0.05466, allocations: 16 kB / 387 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.05495, allocations: 35.97 kB / 387 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-05/0.05504, allocations: 68.33 kB / 387.1 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.05506, allocations: 23.94 kB / 387.1 MB, free: 164 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009979/0.05606, allocations: 0.7724 MB / 387.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05606, allocations: 0 / 387.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007484/0.05681, allocations: 324 kB / 388.2 MB, free: 15.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001955/0.057, allocations: 139 kB / 388.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.05809, allocations: 1.087 MB / 389.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.05809, allocations: 1.938 kB / 389.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005378/0.05863, allocations: 0.687 MB / 390.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.05946, allocations: 348.6 kB / 390.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002969/0.06243, allocations: 2.82 MB / 393.3 MB, free: 9.836 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.06285, allocations: 0.6337 MB / 393.9 MB, free: 9.164 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.06301, allocations: 92.47 kB / 394 MB, free: 9.074 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.06301, allocations: 0 / 394 MB, free: 9.074 MB / 362.7 MB Notification: Performance of Templates: time 0.02826/0.09127, allocations: 41.2 MB / 435.2 MB, free: 15.89 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 7.141660408116877]