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.001604/0.001604, allocations: 111.1 kB / 20.44 MB, free: 1.324 MB / 14.72 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.001916/0.001916, allocations: 205.6 kB / 23.73 MB, free: 4.492 MB / 14.72 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 1.505/1.505, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001577/0.001577, allocations: 47.92 kB / 378.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2674, allocations: 53.37 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0137/0.2811, allocations: 10.58 MB / 442.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006677/0.2878, allocations: 3.128 MB / 445.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.2893, allocations: 39.88 kB / 445.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001943/0.2913, allocations: 0.6478 MB / 446 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002124/0.2934, allocations: 0.7794 MB / 446.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008111/0.2942, allocations: 403.5 kB / 447.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00286/0.2971, allocations: 2.417 MB / 449.6 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.2981, allocations: 0.6031 MB / 450.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.2994, allocations: 0.9379 MB / 451.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.3004, allocations: 0.8472 MB / 452 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002953/0.3007, allocations: 228 kB / 452.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000489/0.3012, allocations: 268 kB / 452.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003986/0.3016, allocations: 458.3 kB / 452.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009083/0.3025, allocations: 0.8673 MB / 453.8 MB, free: 400 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003143/0.3057, allocations: 2.864 MB / 456.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3057, allocations: 0 / 456.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3057, allocations: 0 / 456.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.355e-05/0.3057, allocations: 3.938 kB / 456.6 MB, free: 13.51 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.003806/0.3095, allocations: 2.137 MB / 458.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3095, allocations: 11.97 kB / 458.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009019/0.3104, allocations: 291.5 kB / 459.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.3124, allocations: 1.055 MB / 460.1 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.3125, allocations: 115.5 kB / 460.2 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002493/0.3128, allocations: 163.8 kB / 460.4 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002654/0.3154, allocations: 1.604 MB / 462 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.084e-05/0.3155, allocations: 11.94 kB / 462 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.3156, allocations: 68 kB / 462.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.58e-05/0.3157, allocations: 36 kB / 462.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002133/0.3178, allocations: 1.041 MB / 463.2 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007995/0.3258, allocations: 5.402 MB / 468.6 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.3273, allocations: 0.5738 MB / 469.1 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000939/0.3282, allocations: 426.5 kB / 469.5 MB, free: 128 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.59e-05/0.3283, allocations: 8.656 kB / 469.6 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.3283, allocations: 43.16 kB / 469.6 MB, free: 64 kB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.445e-06/0.3283, allocations: 0 / 469.6 MB, free: 64 kB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004823/0.3331, allocations: 2.154 MB / 471.7 MB, free: 13.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.3332, allocations: 115.4 kB / 471.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.3348, allocations: 1.176 MB / 473 MB, free: 12.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/0.3349, allocations: 37.7 kB / 473.1 MB, free: 12.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007019/0.3356, allocations: 0.8857 MB / 474 MB, free: 11.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/0.3358, allocations: 273.7 kB / 474.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002923/0.3361, allocations: 206.8 kB / 474.4 MB, free: 11.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.3363, allocations: 353.9 kB / 474.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006092/0.3369, allocations: 278.5 kB / 475 MB, free: 10.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.3379, allocations: 0.7926 MB / 475.8 MB, free: 9.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.3396, allocations: 1.092 MB / 476.9 MB, free: 8.195 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.3396, allocations: 4 kB / 476.9 MB, free: 8.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002393/0.342, allocations: 1.245 MB / 478.2 MB, free: 6.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.342, allocations: 20.05 kB / 478.2 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.3421, allocations: 16 kB / 478.2 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004969/0.3426, allocations: 130.5 kB / 478.3 MB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008364/0.3434, allocations: 251.6 kB / 478.6 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004054/0.3475, allocations: 4.251 MB / 482.8 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008304/0.3483, allocations: 56.12 kB / 482.9 MB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.148e-05/0.3484, allocations: 56 kB / 483 MB, free: 1.844 MB / 382.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.0005579/0.3489, allocations: 357.3 kB / 483.3 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.3491, allocations: 135.2 kB / 483.4 MB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.3509, allocations: 0.8164 MB / 484.2 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.3509, allocations: 8 kB / 484.3 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3509, allocations: 0 / 484.3 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.3509, allocations: 7.922 kB / 484.3 MB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/0.3546, allocations: 1.969 MB / 486.2 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3546, allocations: 128 / 486.2 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005668/0.3551, allocations: 136.3 kB / 486.4 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004505/0.3556, allocations: 134.5 kB / 486.5 MB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.3556, allocations: 19.98 kB / 486.5 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004424/0.3601, allocations: 4.392 MB / 490.9 MB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.3601, allocations: 8.281 kB / 490.9 MB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002403/0.3625, allocations: 1.292 MB / 492.2 MB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004945/0.363, allocations: 191.1 kB / 492.4 MB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.3631, allocations: 16 kB / 492.4 MB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000609/0.3637, allocations: 39.97 kB / 492.5 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3638, allocations: 64.27 kB / 492.5 MB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.3639, allocations: 28 kB / 492.5 MB, free: 7.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001171/0.3651, allocations: 0.7724 MB / 493.3 MB, free: 6.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3651, allocations: 3.938 kB / 493.3 MB, free: 6.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00117/0.3662, allocations: 328 kB / 493.6 MB, free: 6.641 MB / 398.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.0002186/0.3664, allocations: 133.7 kB / 493.8 MB, free: 6.504 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.3683, allocations: 1.077 MB / 494.8 MB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3683, allocations: 0 / 494.8 MB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3694, allocations: 0.6941 MB / 495.5 MB, free: 4.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.3708, allocations: 348.4 kB / 495.9 MB, free: 4.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005272/0.3761, allocations: 2.939 MB / 498.8 MB, free: 1.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007098/0.3768, allocations: 0.6298 MB / 499.4 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005939/0.3774, allocations: 162.8 kB / 499.6 MB, free: 492 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.3776, allocations: 83.42 kB / 499.7 MB, free: 412 kB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3776, allocations: 0 / 499.7 MB, free: 412 kB / 398.1 MB Notification: Performance of Templates: time 0.03563/0.4132, allocations: 19.64 MB / 0.5072 GB, free: 13.09 MB / 430.1 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: 5.600509224459529]