Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001794/0.001794, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002224/0.002224, allocations: 206.6 kB / 24.47 MB, free: 3.977 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.474/1.474, allocations: 230.6 MB / 258.2 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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 43.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.231, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01297/0.244, allocations: 10.24 MB / 442.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005523/0.2495, allocations: 3.089 MB / 445.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006556/0.2502, allocations: 43.81 kB / 445.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00148/0.2516, allocations: 0.613 MB / 446.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001472/0.2531, allocations: 0.7251 MB / 447 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007192/0.2538, allocations: 407.5 kB / 447.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002511/0.2563, allocations: 2.246 MB / 449.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009932/0.2573, allocations: 0.6573 MB / 450.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.2584, allocations: 0.8795 MB / 451.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.2595, allocations: 0.9061 MB / 452.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002725/0.2597, allocations: 216 kB / 452.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004533/0.2602, allocations: 260 kB / 452.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003494/0.2605, allocations: 430.4 kB / 453 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008208/0.2613, allocations: 0.8206 MB / 453.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002829/0.2642, allocations: 2.708 MB / 456.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2642, allocations: 0 / 456.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2642, allocations: 3.938 kB / 456.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.2642, allocations: 4 kB / 456.6 MB, free: 14.35 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003537/0.2677, allocations: 2.03 MB / 458.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2678, allocations: 8.031 kB / 458.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008406/0.2686, allocations: 271.5 kB / 458.9 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.2704, allocations: 0.9725 MB / 459.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.2705, allocations: 115.5 kB / 459.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002356/0.2708, allocations: 167.8 kB / 460.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/0.2735, allocations: 1.588 MB / 461.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.697e-05/0.2735, allocations: 0 / 461.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.2736, allocations: 64 kB / 461.8 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.706e-05/0.2737, allocations: 40 kB / 461.8 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.2756, allocations: 0.9746 MB / 462.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007737/0.2833, allocations: 5.706 MB / 468.5 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008559/0.2842, allocations: 377.4 kB / 468.8 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004363/0.2846, allocations: 206 kB / 469 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.2846, allocations: 8.375 kB / 469.1 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005758/0.2852, allocations: 324.2 kB / 469.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.234e-06/0.2852, allocations: 0 / 469.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003217/0.2884, allocations: 1.541 MB / 470.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.2885, allocations: 166.7 kB / 471.1 MB, free: 15.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001527/0.2901, allocations: 1.111 MB / 472.2 MB, free: 14.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.245e-05/0.2901, allocations: 37.7 kB / 472.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007342/0.2909, allocations: 0.9005 MB / 473.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.291, allocations: 222.2 kB / 473.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002971/0.2913, allocations: 218.8 kB / 473.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.2915, allocations: 349.9 kB / 473.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004958/0.292, allocations: 260.2 kB / 474.2 MB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.2931, allocations: 0.9328 MB / 475.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.2946, allocations: 1.121 MB / 476.2 MB, free: 9.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/0.2946, allocations: 4 kB / 476.2 MB, free: 9.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001997/0.2966, allocations: 1.19 MB / 477.4 MB, free: 8.223 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.2967, allocations: 45.72 kB / 477.4 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.2967, allocations: 20 kB / 477.5 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002263/0.2969, allocations: 61.7 kB / 477.5 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008133/0.2977, allocations: 271.4 kB / 477.8 MB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002105/0.2998, allocations: 2.52 MB / 480.3 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008267/0.3007, allocations: 72.11 kB / 480.4 MB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.46e-05/0.3007, allocations: 67.98 kB / 480.4 MB, free: 4.961 MB / 382.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.0005361/0.3013, allocations: 361.3 kB / 480.8 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.3014, allocations: 123.2 kB / 480.9 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.3025, allocations: 0.534 MB / 481.5 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3025, allocations: 8 kB / 481.5 MB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.3025, allocations: 4 kB / 481.5 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3025, allocations: 3.984 kB / 481.5 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.3052, allocations: 1.545 MB / 483 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3052, allocations: 0 / 483 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/0.3056, allocations: 107.8 kB / 483.1 MB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001463/0.3058, allocations: 45.64 kB / 483.2 MB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.3058, allocations: 19.98 kB / 483.2 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.3078, allocations: 2.493 MB / 485.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3078, allocations: 4 kB / 485.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.3093, allocations: 0.9219 MB / 486.6 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/0.3096, allocations: 159.2 kB / 486.8 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.3098, allocations: 16 kB / 486.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005138/0.3103, allocations: 27.97 kB / 486.8 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.3104, allocations: 55.8 kB / 486.9 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.3104, allocations: 23.98 kB / 486.9 MB, free: 14.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001035/0.3115, allocations: 0.7161 MB / 487.6 MB, free: 13.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3115, allocations: 0 / 487.6 MB, free: 13.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001102/0.3126, allocations: 303.9 kB / 487.9 MB, free: 13.1 MB / 398.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.0002122/0.3128, allocations: 130.5 kB / 488 MB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001542/0.3143, allocations: 0.9334 MB / 489 MB, free: 11.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.3143, allocations: 4.875 kB / 489 MB, free: 11.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007071/0.315, allocations: 453.3 kB / 489.4 MB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.3164, allocations: 307.1 kB / 489.7 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.3204, allocations: 2.535 MB / 492.2 MB, free: 8.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006719/0.3211, allocations: 0.5961 MB / 492.8 MB, free: 7.977 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004897/0.3216, allocations: 162.1 kB / 493 MB, free: 7.816 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.3217, allocations: 75.44 kB / 493.1 MB, free: 7.742 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3217, allocations: 0 / 493.1 MB, free: 7.742 MB / 398.1 MB Notification: Performance of Templates: time 0.02951/0.3512, allocations: 16.89 MB / 0.498 GB, free: 7.176 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.057327333997819]