Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.001975/0.001975, allocations: 102.7 kB / 21.93 MB, free: 5.203 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.002447/0.002447, allocations: 202.2 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 207.7 MB / 236.1 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 55.92 kB / 348.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2911, allocations: 49.17 MB / 397.6 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01042/0.3016, allocations: 10.16 MB / 407.8 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006092/0.3076, allocations: 3.051 MB / 410.8 MB, free: 452 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001903/0.3096, allocations: 47.38 kB / 410.9 MB, free: 436 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.3115, allocations: 0.6187 MB / 411.5 MB, free: 120 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002691/0.3142, allocations: 0.7322 MB / 412.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.3153, allocations: 394.5 kB / 412.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003296/0.3186, allocations: 2.252 MB / 414.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.3198, allocations: 0.6098 MB / 415.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.3213, allocations: 0.869 MB / 416.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.3226, allocations: 0.7816 MB / 417.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002558/0.3228, allocations: 216.7 kB / 417.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005495/0.3234, allocations: 251 kB / 417.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000364/0.3237, allocations: 439.1 kB / 418 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000924/0.3247, allocations: 0.8165 MB / 418.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003178/0.3279, allocations: 2.706 MB / 421.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3279, allocations: 3.938 kB / 421.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3279, allocations: 1.062 kB / 421.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.516e-05/0.3279, allocations: 0 / 421.5 MB, free: 9.5 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004097/0.332, allocations: 2.039 MB / 423.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.332, allocations: 9.062 kB / 423.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008465/0.3329, allocations: 273.8 kB / 423.8 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.3349, allocations: 0.9763 MB / 424.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.335, allocations: 113.2 kB / 424.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/0.3352, allocations: 161.2 kB / 425.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002719/0.338, allocations: 1.591 MB / 426.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.282e-05/0.338, allocations: 3.953 kB / 426.7 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.3381, allocations: 64 kB / 426.7 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-05/0.3382, allocations: 40 kB / 426.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.3401, allocations: 0.9707 MB / 427.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008314/0.3484, allocations: 5.698 MB / 433.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008324/0.3492, allocations: 368.7 kB / 433.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/0.3497, allocations: 206 kB / 434 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.885e-05/0.3497, allocations: 12.42 kB / 434 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005499/0.3502, allocations: 320.2 kB / 434.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.715e-06/0.3503, allocations: 0 / 434.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003428/0.3537, allocations: 1.549 MB / 435.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3538, allocations: 162.7 kB / 436.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/0.3553, allocations: 1.118 MB / 437.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.3554, allocations: 37.7 kB / 437.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007458/0.3561, allocations: 0.8967 MB / 438.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.3563, allocations: 218.2 kB / 438.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002957/0.3566, allocations: 222.8 kB / 438.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3568, allocations: 353.9 kB / 438.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/0.3573, allocations: 260.2 kB / 439.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009927/0.3583, allocations: 0.9289 MB / 440.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.3598, allocations: 1.121 MB / 441.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.3598, allocations: 12 kB / 441.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002056/0.3618, allocations: 1.181 MB / 442.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.186e-05/0.3619, allocations: 37.7 kB / 442.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/0.3619, allocations: 20 kB / 442.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/0.3622, allocations: 74.38 kB / 442.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008024/0.363, allocations: 263.5 kB / 442.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.365, allocations: 2.516 MB / 445.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009928/0.366, allocations: 75.81 kB / 445.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.622e-05/0.3661, allocations: 56 kB / 445.4 MB, free: 1.797 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005986/0.3667, allocations: 361.4 kB / 445.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.3669, allocations: 123.3 kB / 445.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.3679, allocations: 0.534 MB / 446.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.3679, allocations: 8 kB / 446.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3679, allocations: 0 / 446.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.3679, allocations: 3.984 kB / 446.4 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002583/0.3705, allocations: 1.552 MB / 448 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.3705, allocations: 4 kB / 448 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.371, allocations: 108.3 kB / 448.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.3711, allocations: 45.7 kB / 448.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.3711, allocations: 15.98 kB / 448.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.3731, allocations: 2.493 MB / 450.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3731, allocations: 4 kB / 450.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.3746, allocations: 0.9099 MB / 451.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000429/0.375, allocations: 167.3 kB / 451.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.3751, allocations: 20 kB / 451.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004975/0.3756, allocations: 31.97 kB / 451.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.3757, allocations: 59.58 kB / 451.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.3758, allocations: 20 kB / 451.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.3768, allocations: 0.7161 MB / 452.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3768, allocations: 3.938 kB / 452.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001174/0.378, allocations: 303.9 kB / 452.9 MB, free: 9.926 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (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.0002349/0.3782, allocations: 139.2 kB / 453 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.3797, allocations: 0.9137 MB / 453.9 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3797, allocations: 0 / 453.9 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006896/0.3804, allocations: 451.3 kB / 454.4 MB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.3818, allocations: 308.2 kB / 454.7 MB, free: 8.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004525/0.3864, allocations: 2.589 MB / 457.2 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007324/0.3871, allocations: 0.5883 MB / 457.8 MB, free: 4.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.3873, allocations: 91.42 kB / 457.9 MB, free: 4.668 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3873, allocations: 0 / 457.9 MB, free: 4.668 MB / 366.1 MB Notification: Performance of Templates: time 0.04334/0.4307, allocations: 31.64 MB / 489.6 MB, free: 4.969 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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: 9.854094236157835]