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.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.001356/0.001356, allocations: 106 kB / 21.18 MB, free: 0.707 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.001382/0.001382, allocations: 185.2 kB / 24.47 MB, free: 4.074 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.54/1.54, allocations: 207.6 MB / 235.2 MB, free: 10.03 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 60.28 kB / 347.7 MB, free: 9.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3117, allocations: 49.15 MB / 396.8 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01213/0.3239, allocations: 11.76 MB / 408.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006939/0.3308, allocations: 3.235 MB / 411.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001726/0.3325, allocations: 42.06 kB / 411.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.3344, allocations: 0.6748 MB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002417/0.3369, allocations: 0.7275 MB / 413.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.3379, allocations: 401.6 kB / 413.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003125/0.341, allocations: 2.258 MB / 415.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.3421, allocations: 0.661 MB / 416.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.3437, allocations: 0.8689 MB / 417.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001282/0.3449, allocations: 0.9072 MB / 418.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002721/0.3452, allocations: 215.8 kB / 418.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005589/0.3458, allocations: 254.8 kB / 418.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003669/0.3461, allocations: 431.1 kB / 419.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.3472, allocations: 1.019 MB / 420.2 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003839/0.3511, allocations: 2.69 MB / 422.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3511, allocations: 5.062 kB / 422.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3511, allocations: 0 / 422.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.715e-05/0.3511, allocations: 0 / 422.9 MB, free: 7.336 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.004186/0.3553, allocations: 2.039 MB / 425 MB, free: 5.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.3554, allocations: 9.625 kB / 425 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000956/0.3563, allocations: 264.9 kB / 425.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.3583, allocations: 0.9763 MB / 426.2 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.3585, allocations: 113.7 kB / 426.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002202/0.3587, allocations: 160.6 kB / 426.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002738/0.3614, allocations: 1.487 MB / 428 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.197e-05/0.3615, allocations: 12.12 kB / 428 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.3616, allocations: 61.56 kB / 428.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-05/0.3616, allocations: 38.34 kB / 428.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002012/0.3636, allocations: 0.9803 MB / 429.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00913/0.3728, allocations: 6.384 MB / 435.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008237/0.3736, allocations: 364.2 kB / 435.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004231/0.374, allocations: 210 kB / 436 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.3741, allocations: 4.438 kB / 436 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005288/0.3746, allocations: 272.8 kB / 436.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.414e-06/0.3746, allocations: 0 / 436.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003533/0.3781, allocations: 1.564 MB / 437.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.3782, allocations: 166.7 kB / 438 MB, free: 9.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001804/0.38, allocations: 1.277 MB / 439.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.651e-05/0.3801, allocations: 37.7 kB / 439.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007702/0.3809, allocations: 0.9011 MB / 440.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.381, allocations: 210.3 kB / 440.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.3813, allocations: 222.8 kB / 440.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3815, allocations: 353.9 kB / 441 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.382, allocations: 230.5 kB / 441.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.383, allocations: 0.7995 MB / 442 MB, free: 5.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.3845, allocations: 1.121 MB / 443.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.3845, allocations: 4 kB / 443.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002091/0.3866, allocations: 1.172 MB / 444.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.932e-05/0.3866, allocations: 41.89 kB / 444.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.3867, allocations: 20 kB / 444.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.3869, allocations: 73.62 kB / 444.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000775/0.3877, allocations: 267.5 kB / 444.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/0.3899, allocations: 2.562 MB / 447.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.3911, allocations: 72.08 kB / 447.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.531e-05/0.3912, allocations: 56 kB / 447.4 MB, free: 15.27 MB / 366.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.0006257/0.3918, allocations: 361.2 kB / 447.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.392, allocations: 143.1 kB / 447.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.3931, allocations: 0.5474 MB / 448.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.3931, allocations: 11.98 kB / 448.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3931, allocations: 4 kB / 448.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3931, allocations: 0 / 448.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002978/0.3961, allocations: 1.838 MB / 450.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.3961, allocations: 4 kB / 450.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.3965, allocations: 107.8 kB / 450.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000159/0.3967, allocations: 46.17 kB / 450.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.3967, allocations: 19.98 kB / 450.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002121/0.3988, allocations: 2.543 MB / 453 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.3988, allocations: 4 kB / 453 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.4004, allocations: 0.9226 MB / 453.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005437/0.4009, allocations: 191 kB / 454.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.4011, allocations: 16 kB / 454.1 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00058/0.4017, allocations: 39.97 kB / 454.2 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.4018, allocations: 55.58 kB / 454.2 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.4019, allocations: 20 kB / 454.3 MB, free: 7.969 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001391/0.4033, allocations: 0.8461 MB / 455.1 MB, free: 7.121 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4033, allocations: 4 kB / 455.1 MB, free: 7.117 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00129/0.4046, allocations: 307.9 kB / 455.4 MB, free: 6.816 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.0002433/0.4048, allocations: 135.2 kB / 455.5 MB, free: 6.676 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.4064, allocations: 0.8938 MB / 456.4 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.4064, allocations: 3.938 kB / 456.4 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007438/0.4072, allocations: 461 kB / 456.9 MB, free: 5.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.4087, allocations: 333.6 kB / 457.2 MB, free: 4.945 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.4134, allocations: 2.556 MB / 459.8 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.4146, allocations: 1.182 MB / 460.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007034/0.4153, allocations: 167.3 kB / 461.1 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.4155, allocations: 83.44 kB / 461.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4155, allocations: 0 / 461.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of Templates: time 0.03224/0.4478, allocations: 16 MB / 477.2 MB, free: 0.8125 MB / 382.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/jenkins/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/jenkins/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: 5.367227985523641]