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.001613/0.001613, allocations: 113 kB / 19.04 MB, free: 3.254 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.001725/0.001725, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.423/1.423, allocations: 225.6 MB / 250.8 MB, free: 13.32 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_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.001482/0.001482, allocations: 51.91 kB / 368.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2744, allocations: 52.15 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01424/0.2886, allocations: 12.23 MB / 433.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006403/0.295, allocations: 3.292 MB / 436.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.2965, allocations: 43.81 kB / 436.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001926/0.2984, allocations: 0.6868 MB / 437.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00246/0.3009, allocations: 0.7833 MB / 437.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009469/0.3018, allocations: 407.5 kB / 438.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003165/0.305, allocations: 2.405 MB / 440.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.306, allocations: 0.6496 MB / 441.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001348/0.3074, allocations: 0.9183 MB / 442.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.3086, allocations: 0.98 MB / 443.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000284/0.3089, allocations: 232 kB / 443.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004888/0.3094, allocations: 264 kB / 443.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003814/0.3098, allocations: 458.3 kB / 444.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.3109, allocations: 1.077 MB / 445.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003455/0.3143, allocations: 2.848 MB / 448.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3143, allocations: 0 / 448.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3143, allocations: 0 / 448.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.208e-05/0.3144, allocations: 0 / 448.1 MB, free: 3.68 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004349/0.3187, allocations: 2.205 MB / 450.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3188, allocations: 8.031 kB / 450.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009592/0.3197, allocations: 291.5 kB / 450.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001952/0.3217, allocations: 1.143 MB / 451.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.724e-05/0.3218, allocations: 119.5 kB / 451.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.322, allocations: 159.9 kB / 452 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00273/0.3247, allocations: 1.504 MB / 453.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.543e-05/0.3248, allocations: 11.94 kB / 453.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.3249, allocations: 60 kB / 453.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.745e-05/0.325, allocations: 40 kB / 453.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.3271, allocations: 1.053 MB / 454.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009127/0.3363, allocations: 6.259 MB / 461 MB, free: 6.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.3378, allocations: 0.5657 MB / 461.5 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000911/0.3387, allocations: 426.2 kB / 461.9 MB, free: 5.363 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.216e-05/0.3388, allocations: 8.719 kB / 462 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.3388, allocations: 43.12 kB / 462 MB, free: 5.305 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.766e-06/0.3388, allocations: 0 / 462 MB, free: 5.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.00525/0.3441, allocations: 2.395 MB / 464.4 MB, free: 2.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.3441, allocations: 107.5 kB / 464.5 MB, free: 2.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/0.346, allocations: 1.302 MB / 465.8 MB, free: 1.375 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.3461, allocations: 41.7 kB / 465.8 MB, free: 1.328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006941/0.3468, allocations: 0.8671 MB / 466.7 MB, free: 464 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.347, allocations: 285.7 kB / 467 MB, free: 176 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.3473, allocations: 206.8 kB / 467.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3474, allocations: 345.9 kB / 467.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000594/0.348, allocations: 286.5 kB / 467.8 MB, free: 15.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000936/0.349, allocations: 0.7381 MB / 468.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.3506, allocations: 1.084 MB / 469.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.3506, allocations: 4 kB / 469.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002589/0.3532, allocations: 1.264 MB / 470.9 MB, free: 11.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.3532, allocations: 12 kB / 470.9 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.3532, allocations: 16 kB / 470.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005372/0.3537, allocations: 134.9 kB / 471.1 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008571/0.3546, allocations: 255.6 kB / 471.3 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004889/0.3595, allocations: 4.642 MB / 475.9 MB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.3607, allocations: 63.86 kB / 476 MB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.362e-05/0.3608, allocations: 56.05 kB / 476.1 MB, free: 6.207 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.0007548/0.3615, allocations: 361.3 kB / 476.4 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.3617, allocations: 143.1 kB / 476.6 MB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/0.3637, allocations: 0.8256 MB / 477.4 MB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.3637, allocations: 16 kB / 477.4 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.3637, allocations: 4 kB / 477.4 MB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.3638, allocations: 3.984 kB / 477.4 MB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004193/0.3679, allocations: 2.323 MB / 479.7 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.368, allocations: 4 kB / 479.7 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.3686, allocations: 136.3 kB / 479.9 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004837/0.369, allocations: 134.4 kB / 480 MB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.121e-05/0.3691, allocations: 20 kB / 480 MB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004868/0.374, allocations: 4.783 MB / 484.8 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.374, allocations: 12.05 kB / 484.8 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/0.3766, allocations: 1.297 MB / 486.1 MB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006166/0.3772, allocations: 292 kB / 486.4 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.3774, allocations: 20 kB / 486.4 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006123/0.378, allocations: 35.97 kB / 486.4 MB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.3782, allocations: 64.36 kB / 486.5 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.056e-05/0.3782, allocations: 28 kB / 486.5 MB, free: 11.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001454/0.3797, allocations: 0.8819 MB / 487.4 MB, free: 10.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3797, allocations: 0 / 487.4 MB, free: 10.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00136/0.381, allocations: 331.9 kB / 487.7 MB, free: 9.855 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.000302/0.3813, allocations: 146.7 kB / 487.9 MB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002191/0.3835, allocations: 1.093 MB / 489 MB, free: 8.578 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.3835, allocations: 4 kB / 489 MB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.3846, allocations: 0.6922 MB / 489.7 MB, free: 7.844 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.3863, allocations: 359 kB / 490 MB, free: 7.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005796/0.3921, allocations: 2.955 MB / 493 MB, free: 4.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009478/0.3931, allocations: 1.214 MB / 494.2 MB, free: 3.219 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006982/0.3938, allocations: 175.6 kB / 494.4 MB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/0.394, allocations: 91.42 kB / 494.5 MB, free: 2.957 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.394, allocations: 0 / 494.5 MB, free: 2.957 MB / 398.1 MB Notification: Performance of Templates: time 0.03601/0.43, allocations: 18.47 MB / 0.5009 GB, free: 0.6602 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.280734830535948]