Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001677/0.001677, allocations: 124.5 kB / 18.46 MB, free: 4.449 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.001891/0.001891, allocations: 190.6 kB / 21.4 MB, free: 1.52 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.425/1.425, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.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_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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 51.92 kB / 366.8 MB, free: 400 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09489/0.09637, allocations: 52.14 MB / 419 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01406/0.1104, allocations: 12.21 MB / 431.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006141/0.1166, allocations: 3.276 MB / 434.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.1178, allocations: 39.94 kB / 434.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.1195, allocations: 0.6868 MB / 435.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001917/0.1214, allocations: 0.7911 MB / 436 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007916/0.1222, allocations: 399.5 kB / 436.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002917/0.1251, allocations: 2.42 MB / 438.8 MB, free: 8.258 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.1261, allocations: 0.6496 MB / 439.4 MB, free: 7.562 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.1275, allocations: 0.9105 MB / 440.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.1289, allocations: 0.9761 MB / 441.3 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003693/0.1293, allocations: 232 kB / 441.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005534/0.1298, allocations: 272 kB / 441.8 MB, free: 5.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003883/0.1302, allocations: 454.3 kB / 442.2 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.1314, allocations: 1.073 MB / 443.3 MB, free: 3.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0033/0.1347, allocations: 2.848 MB / 446.2 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1347, allocations: 0 / 446.2 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1347, allocations: 4 kB / 446.2 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.356e-05/0.1347, allocations: 0 / 446.2 MB, free: 0.7812 MB / 366.1 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.1881/0.3229, allocations: 2.198 MB / 448.4 MB, free: 29.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.3229, allocations: 8.625 kB / 448.4 MB, free: 29.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008814/0.3238, allocations: 295.1 kB / 448.7 MB, free: 29.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.3253, allocations: 1.132 MB / 449.8 MB, free: 29.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.868e-05/0.3254, allocations: 117.3 kB / 449.9 MB, free: 29.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/0.3256, allocations: 163 kB / 450.1 MB, free: 29.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/0.3278, allocations: 1.504 MB / 451.6 MB, free: 29.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.429e-05/0.3279, allocations: 14.48 kB / 451.6 MB, free: 29.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.328, allocations: 65.47 kB / 451.7 MB, free: 29.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.499e-05/0.328, allocations: 37.94 kB / 451.7 MB, free: 29.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001962/0.33, allocations: 1.047 MB / 452.7 MB, free: 28.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007598/0.3376, allocations: 6.252 MB / 459 MB, free: 24.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.339, allocations: 0.5728 MB / 459.6 MB, free: 24.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008933/0.3399, allocations: 419 kB / 460 MB, free: 24.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.34, allocations: 11.95 kB / 460 MB, free: 24.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.34, allocations: 43.62 kB / 460 MB, free: 24.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.846e-06/0.34, allocations: 0 / 460 MB, free: 24.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004815/0.3448, allocations: 2.389 MB / 462.4 MB, free: 22.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.3449, allocations: 114.3 kB / 462.5 MB, free: 22.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001725/0.3466, allocations: 1.303 MB / 463.8 MB, free: 22.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.486e-05/0.3466, allocations: 37.81 kB / 463.9 MB, free: 22.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004325/0.3471, allocations: 0.8704 MB / 464.7 MB, free: 21.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.3472, allocations: 278 kB / 465 MB, free: 21.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.3475, allocations: 205.4 kB / 465.2 MB, free: 21.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.089e-05/0.3476, allocations: 353.5 kB / 465.6 MB, free: 20.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005639/0.3482, allocations: 284.2 kB / 465.8 MB, free: 20.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000713/0.3489, allocations: 0.742 MB / 466.6 MB, free: 20.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.3501, allocations: 1.09 MB / 467.7 MB, free: 19.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.036e-06/0.3501, allocations: 5.5 kB / 467.7 MB, free: 19.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002315/0.3524, allocations: 1.262 MB / 468.9 MB, free: 18.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3525, allocations: 16.38 kB / 468.9 MB, free: 18.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.3525, allocations: 13.97 kB / 469 MB, free: 18.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005209/0.353, allocations: 135.3 kB / 469.1 MB, free: 18.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008813/0.3539, allocations: 259 kB / 469.3 MB, free: 18.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002971/0.3569, allocations: 4.639 MB / 474 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.3579, allocations: 61.53 kB / 474 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.161e-05/0.358, allocations: 54.03 kB / 474.1 MB, free: 13.99 MB / 366.1 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.0005564/0.3585, allocations: 355.8 kB / 474.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.3587, allocations: 150.1 kB / 474.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.3606, allocations: 0.8249 MB / 475.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3606, allocations: 7.562 kB / 475.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3606, allocations: 1 kB / 475.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.3606, allocations: 4.875 kB / 475.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00368/0.3643, allocations: 2.338 MB / 477.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.3643, allocations: 4.25 kB / 477.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005716/0.3649, allocations: 129.1 kB / 477.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004333/0.3653, allocations: 134.5 kB / 478 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.438e-05/0.3653, allocations: 15.84 kB / 478 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003239/0.3686, allocations: 4.793 MB / 482.8 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3686, allocations: 3.969 kB / 482.8 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/0.3709, allocations: 1.303 MB / 484.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004747/0.3714, allocations: 286.8 kB / 484.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.3715, allocations: 20.23 kB / 484.4 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006178/0.3721, allocations: 47.16 kB / 484.5 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.3723, allocations: 62.48 kB / 484.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.803e-05/0.3723, allocations: 20.5 kB / 484.6 MB, free: 5.738 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001145/0.3735, allocations: 0.8767 MB / 485.4 MB, free: 5.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3735, allocations: 4 kB / 485.4 MB, free: 5.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001689/0.3751, allocations: 333.2 kB / 485.8 MB, free: 5.215 MB / 366.1 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.0002625/0.3754, allocations: 149 kB / 485.9 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.3773, allocations: 1.085 MB / 487 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.3774, allocations: 2.25 kB / 487 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009286/0.3783, allocations: 0.6876 MB / 487.7 MB, free: 3.863 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/0.38, allocations: 369.6 kB / 488.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.3844, allocations: 3 MB / 491.1 MB, free: 1.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000545/0.385, allocations: 1.212 MB / 492.3 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003037/0.3853, allocations: 99.41 kB / 492.4 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3853, allocations: 0 / 492.4 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of Templates: time 0.04977/0.4351, allocations: 41.21 MB / 0.5211 GB, free: 8.188 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.405794885009527]