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.001296/0.001296, allocations: 110.8 kB / 21.19 MB, free: 0.6641 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.001316/0.001316, allocations: 211.6 kB / 24.49 MB, free: 3.965 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.411/1.411, allocations: 230.6 MB / 258.3 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.001552/0.001552, allocations: 43.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2131, allocations: 53.38 MB / 432.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01329/0.2264, allocations: 10.23 MB / 442.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005876/0.2323, allocations: 3.086 MB / 445.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000675/0.2329, allocations: 43.81 kB / 445.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.2345, allocations: 0.6207 MB / 446.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.2359, allocations: 0.729 MB / 447.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007227/0.2367, allocations: 399.5 kB / 447.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002334/0.239, allocations: 2.242 MB / 449.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001005/0.24, allocations: 0.6537 MB / 450.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.2411, allocations: 0.8833 MB / 451.2 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.2421, allocations: 0.91 MB / 452.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002656/0.2423, allocations: 216 kB / 452.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004323/0.2428, allocations: 252 kB / 452.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003569/0.2431, allocations: 438.4 kB / 453 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008179/0.244, allocations: 0.8167 MB / 453.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002788/0.2467, allocations: 2.711 MB / 456.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2467, allocations: 0 / 456.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2467, allocations: 0 / 456.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.2468, allocations: 0 / 456.6 MB, free: 14.36 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.003622/0.2504, allocations: 2.041 MB / 458.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.2504, allocations: 8.031 kB / 458.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008326/0.2513, allocations: 275.6 kB / 458.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001761/0.253, allocations: 0.9648 MB / 459.8 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.2531, allocations: 111.5 kB / 459.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/0.2534, allocations: 167.8 kB / 460.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002719/0.2561, allocations: 1.584 MB / 461.7 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.073e-05/0.2561, allocations: 11.92 kB / 461.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.2563, allocations: 68 kB / 461.8 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.621e-05/0.2563, allocations: 40 kB / 461.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00195/0.2582, allocations: 0.9707 MB / 462.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00754/0.2658, allocations: 5.706 MB / 468.5 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008377/0.2666, allocations: 373.4 kB / 468.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004427/0.2671, allocations: 202.1 kB / 469.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.2671, allocations: 4.438 kB / 469.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005665/0.2677, allocations: 328.2 kB / 469.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.384e-06/0.2677, allocations: 0 / 469.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00312/0.2708, allocations: 1.541 MB / 470.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.791e-05/0.2709, allocations: 162.7 kB / 471.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.2724, allocations: 1.114 MB / 472.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.591e-05/0.2724, allocations: 37.7 kB / 472.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007158/0.2732, allocations: 0.9043 MB / 473.1 MB, free: 13.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.2733, allocations: 214.3 kB / 473.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.2736, allocations: 230.7 kB / 473.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2738, allocations: 353.9 kB / 473.9 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.2743, allocations: 252.2 kB / 474.2 MB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.2753, allocations: 0.9367 MB / 475.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.2768, allocations: 1.117 MB / 476.2 MB, free: 9.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.2768, allocations: 4 kB / 476.2 MB, free: 9.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001989/0.2788, allocations: 1.186 MB / 477.4 MB, free: 8.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.2789, allocations: 41.7 kB / 477.4 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.2789, allocations: 24.06 kB / 477.5 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002301/0.2791, allocations: 65.64 kB / 477.5 MB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008266/0.2799, allocations: 263.6 kB / 477.8 MB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.2821, allocations: 2.528 MB / 480.3 MB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000789/0.2829, allocations: 71.86 kB / 480.4 MB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.009e-05/0.283, allocations: 60 kB / 480.4 MB, free: 4.973 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.0005142/0.2835, allocations: 357.5 kB / 480.8 MB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.2836, allocations: 123.2 kB / 480.9 MB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.2848, allocations: 0.534 MB / 481.4 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.2848, allocations: 3.984 kB / 481.5 MB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2848, allocations: 3.938 kB / 481.5 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/0.2851, allocations: 155.2 kB / 481.6 MB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.2853, allocations: 23.98 kB / 481.6 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004517/0.2857, allocations: 23.98 kB / 481.7 MB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.37e-05/0.2858, allocations: 48.34 kB / 481.7 MB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00133/0.2871, allocations: 0.5614 MB / 482.3 MB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001388/0.2885, allocations: 0.8681 MB / 483.1 MB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003446/0.2889, allocations: 163.9 kB / 483.3 MB, free: 2.059 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00104/0.2899, allocations: 0.7161 MB / 484 MB, free: 1.336 MB / 382.1 MB Notification: Performance of Backend: time 4.71e-07/0.2899, allocations: 4 kB / 484 MB, free: 1.332 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.2917, allocations: 0.8967 MB / 484.9 MB, free: 400 kB / 382.1 MB Notification: Performance of SimCode: time 0.00465/0.2963, allocations: 3.11 MB / 488 MB, free: 13.23 MB / 398.1 MB Notification: Performance of Templates: time 0.0316/0.3279, allocations: 18.08 MB / 0.4942 GB, free: 11.48 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 -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: 4.877304105000803]