Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001901/0.001901, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002511/0.002511, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 47.92 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2992, allocations: 53.37 MB / 431.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.0107/0.3099, allocations: 7.285 MB / 438.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005452/0.3153, allocations: 2.56 MB / 441.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006251/0.3159, allocations: 31.81 kB / 441.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.3174, allocations: 0.5209 MB / 442 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.3187, allocations: 0.5002 MB / 442.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006505/0.3194, allocations: 283.6 kB / 442.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001778/0.3211, allocations: 1.502 MB / 444.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006858/0.3218, allocations: 411 kB / 444.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007518/0.3226, allocations: 0.5836 MB / 445.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007545/0.3233, allocations: 0.6106 MB / 445.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.3235, allocations: 140 kB / 446 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00036/0.3239, allocations: 184 kB / 446.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.3242, allocations: 290.9 kB / 446.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005973/0.3248, allocations: 0.5561 MB / 447 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002185/0.327, allocations: 1.777 MB / 448.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.327, allocations: 0 / 448.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.327, allocations: 0 / 448.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.327, allocations: 0 / 448.8 MB, free: 5.395 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.002659/0.3297, allocations: 1.438 MB / 450.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.3297, allocations: 8.031 kB / 450.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007635/0.3305, allocations: 208 kB / 450.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.3319, allocations: 0.6931 MB / 451.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.11e-05/0.332, allocations: 70 kB / 451.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.3322, allocations: 104 kB / 451.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3339, allocations: 1.047 MB / 452.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.725e-05/0.334, allocations: 4 kB / 452.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-05/0.3341, allocations: 40 kB / 452.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/0.3341, allocations: 27.94 kB / 452.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.3354, allocations: 0.6519 MB / 453.1 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005329/0.3408, allocations: 3.373 MB / 456.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007356/0.3415, allocations: 350.6 kB / 456.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006471/0.3421, allocations: 272.6 kB / 457.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.3422, allocations: 7.984 kB / 457.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.3422, allocations: 38.56 kB / 457.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.114e-06/0.3422, allocations: 0 / 457.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003078/0.3453, allocations: 1.327 MB / 458.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.3454, allocations: 85.11 kB / 458.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.3465, allocations: 0.7818 MB / 459.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.3465, allocations: 33.7 kB / 459.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004878/0.347, allocations: 0.5891 MB / 459.9 MB, free: 9.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.3471, allocations: 170.6 kB / 460.1 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/0.3473, allocations: 134.6 kB / 460.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.3476, allocations: 382.8 kB / 460.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/0.3479, allocations: 177.9 kB / 460.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006309/0.3486, allocations: 0.4895 MB / 461.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3496, allocations: 0.6721 MB / 461.9 MB, free: 7.559 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3496, allocations: 4 kB / 461.9 MB, free: 7.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001486/0.3511, allocations: 0.7758 MB / 462.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.3512, allocations: 12 kB / 462.7 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.3512, allocations: 12 kB / 462.7 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002799/0.3514, allocations: 81.61 kB / 462.8 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.352, allocations: 159.7 kB / 463 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002658/0.3546, allocations: 2.893 MB / 465.9 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.3552, allocations: 44.16 kB / 465.9 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.3553, allocations: 32 kB / 465.9 MB, free: 3.328 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.0004102/0.3557, allocations: 257.6 kB / 466.2 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.3558, allocations: 83.48 kB / 466.3 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.3568, allocations: 0.4986 MB / 466.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3569, allocations: 7.938 kB / 466.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3569, allocations: 0 / 466.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3569, allocations: 3.984 kB / 466.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.359, allocations: 1.228 MB / 468 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.902e-06/0.359, allocations: 4 kB / 468 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.3593, allocations: 75.89 kB / 468.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000204/0.3595, allocations: 69.91 kB / 468.1 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.3596, allocations: 15.98 kB / 468.2 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002562/0.3621, allocations: 2.862 MB / 471 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3621, allocations: 3.938 kB / 471 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.3636, allocations: 0.8019 MB / 471.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000354/0.364, allocations: 115.5 kB / 471.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3641, allocations: 16 kB / 472 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.3645, allocations: 27.98 kB / 472 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.987e-05/0.3646, allocations: 39.81 kB / 472 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.3647, allocations: 23.92 kB / 472 MB, free: 12.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008252/0.3655, allocations: 0.5186 MB / 472.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3655, allocations: 0 / 472.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009082/0.3664, allocations: 208 kB / 472.8 MB, free: 12.14 MB / 382.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.0002354/0.3666, allocations: 123.1 kB / 472.9 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.368, allocations: 0.6905 MB / 473.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.368, allocations: 0 / 473.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.3687, allocations: 441 kB / 474 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.3697, allocations: 213.8 kB / 474.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003066/0.3728, allocations: 1.748 MB / 476 MB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.3733, allocations: 434.3 kB / 476.4 MB, free: 8.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003688/0.3736, allocations: 98.75 kB / 476.5 MB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.3738, allocations: 55.44 kB / 476.5 MB, free: 8.223 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3738, allocations: 0 / 476.5 MB, free: 8.223 MB / 382.1 MB Notification: Performance of Templates: time 0.02365/0.3974, allocations: 11.98 MB / 488.5 MB, free: 12.48 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.071152657736093]