Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001269/0.001269, 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.001361/0.001361, 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.385/1.385, 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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 43.91 kB / 368.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2874, allocations: 52.14 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.0103/0.2977, allocations: 8.302 MB / 429.2 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004703/0.3024, allocations: 2.7 MB / 431.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006243/0.303, allocations: 27.94 kB / 431.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.3044, allocations: 0.5792 MB / 432.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001/0.3054, allocations: 0.5002 MB / 433 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.3059, allocations: 267.6 kB / 433.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001485/0.3074, allocations: 1.498 MB / 434.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006098/0.308, allocations: 402.9 kB / 435.1 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006272/0.3086, allocations: 0.5641 MB / 435.7 MB, free: 176 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007113/0.3094, allocations: 0.6223 MB / 436.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001692/0.3095, allocations: 140 kB / 436.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003031/0.3098, allocations: 176 kB / 436.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.3101, allocations: 283 kB / 436.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006245/0.3107, allocations: 0.6765 MB / 437.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001906/0.3126, allocations: 1.76 MB / 439.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3126, allocations: 0 / 439.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3126, allocations: 0 / 439.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.3126, allocations: 0 / 439.3 MB, free: 12.52 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002557/0.3152, allocations: 1.521 MB / 440.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3152, allocations: 11.89 kB / 440.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006591/0.3159, allocations: 192 kB / 441.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.3171, allocations: 0.7665 MB / 441.8 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.184e-05/0.3172, allocations: 78 kB / 441.9 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.3173, allocations: 103.9 kB / 442 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.319, allocations: 0.9464 MB / 443 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.474e-05/0.319, allocations: 3.953 kB / 443 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.4e-05/0.3191, allocations: 44 kB / 443 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.3192, allocations: 27.98 kB / 443 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.3205, allocations: 0.6481 MB / 443.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005222/0.3257, allocations: 3.927 MB / 447.6 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007423/0.3264, allocations: 423.9 kB / 448 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/0.327, allocations: 256.7 kB / 448.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.3271, allocations: 4 kB / 448.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.3271, allocations: 34.56 kB / 448.3 MB, free: 3.164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/0.3271, allocations: 4 kB / 448.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002987/0.3301, allocations: 1.564 MB / 449.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.3302, allocations: 85.11 kB / 450 MB, free: 1.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.3314, allocations: 0.8371 MB / 450.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.785e-05/0.3315, allocations: 37.7 kB / 450.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004755/0.332, allocations: 0.5777 MB / 451.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.3321, allocations: 174.6 kB / 451.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/0.3323, allocations: 134.6 kB / 451.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3325, allocations: 330 kB / 452 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.3328, allocations: 177.9 kB / 452.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006014/0.3334, allocations: 467.6 kB / 452.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.3345, allocations: 0.6836 MB / 453.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.3345, allocations: 4 kB / 453.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001413/0.3359, allocations: 0.7868 MB / 454.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3359, allocations: 8.406 kB / 454.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.3359, allocations: 19.92 kB / 454.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002828/0.3362, allocations: 93.61 kB / 454.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000519/0.3367, allocations: 151.7 kB / 454.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/0.3395, allocations: 3.142 MB / 457.5 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006/0.3401, allocations: 35.94 kB / 457.6 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-05/0.3402, allocations: 32.12 kB / 457.6 MB, free: 9.145 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004433/0.3406, allocations: 272.8 kB / 457.9 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.3407, allocations: 95.42 kB / 458 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.3418, allocations: 0.4992 MB / 458.5 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3418, allocations: 8 kB / 458.5 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3418, allocations: 0 / 458.5 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3418, allocations: 12.02 kB / 458.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3442, allocations: 1.478 MB / 460 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3442, allocations: 0 / 460 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003393/0.3445, allocations: 75.89 kB / 460 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002123/0.3447, allocations: 69.91 kB / 460.1 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.3447, allocations: 11.98 kB / 460.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002534/0.3473, allocations: 3.126 MB / 463.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3473, allocations: 4.031 kB / 463.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3487, allocations: 0.806 MB / 464.1 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002777/0.3489, allocations: 204.5 kB / 464.3 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.924e-05/0.349, allocations: 11.94 kB / 464.3 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.3495, allocations: 31.98 kB / 464.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.439e-05/0.3496, allocations: 35.89 kB / 464.3 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.3496, allocations: 16 kB / 464.4 MB, free: 1.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008396/0.3504, allocations: 0.5732 MB / 464.9 MB, free: 1.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3504, allocations: 0 / 464.9 MB, free: 1.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008439/0.3513, allocations: 208 kB / 465.1 MB, free: 1.176 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0002233/0.3515, allocations: 127.1 kB / 465.3 MB, free: 1.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.3528, allocations: 0.6904 MB / 465.9 MB, free: 336 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3528, allocations: 4.125 kB / 465.9 MB, free: 332 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000711/0.3535, allocations: 445 kB / 466.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.3545, allocations: 230.5 kB / 466.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.3578, allocations: 1.761 MB / 468.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007157/0.3586, allocations: 1.013 MB / 469.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004036/0.359, allocations: 103.3 kB / 469.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3591, allocations: 59.44 kB / 469.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3591, allocations: 0 / 469.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of Templates: time 0.02146/0.3806, allocations: 11.16 MB / 480.7 MB, free: 1.59 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.873713070526719]