Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.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.001828/0.001828, allocations: 115 kB / 18.46 MB, free: 4.621 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.002218/0.002218, allocations: 207.3 kB / 21.41 MB, free: 1.668 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.537/1.537, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.Analog.Examples.Lines.CompareLosslessLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|line1.v1|line1.v2|line1.i1|line1.i2|line2.v1|line2.v2|line2.i1|line2.i2|line3.v1|line3.v2|line3.i1|line3.i2",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines") translateModel(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|line1.v1|line1.v2|line1.i1|line1.i2|line2.v1|line2.v2|line2.i1|line2.i2|line3.v1|line3.v2|line3.i1|line3.i2",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 51.92 kB / 374.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1034, allocations: 53.33 MB / 427.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.005212/0.1086, allocations: 3.618 MB / 431.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2011/0.3097, allocations: 0.8851 MB / 432 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003792/0.3101, allocations: 11.12 kB / 432 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002692/0.3104, allocations: 78.67 kB / 432.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003989/0.3108, allocations: 145.3 kB / 432.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004257/0.3112, allocations: 196.3 kB / 432.4 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006175/0.3118, allocations: 0.6208 MB / 433.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003345/0.3122, allocations: 162.1 kB / 433.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004102/0.3126, allocations: 250.4 kB / 433.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003677/0.3129, allocations: 292.7 kB / 433.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.469e-05/0.313, allocations: 58 kB / 433.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.241e-05/0.3131, allocations: 59 kB / 433.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.3132, allocations: 125.1 kB / 434 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002644/0.3135, allocations: 278.6 kB / 434.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006298/0.3141, allocations: 0.6144 MB / 434.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3141, allocations: 1.188 kB / 434.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3141, allocations: 0 / 434.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.3141, allocations: 0 / 434.9 MB, free: 7.723 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001549/0.3157, allocations: 0.8656 MB / 435.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3157, allocations: 10.38 kB / 435.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.3159, allocations: 58.08 kB / 435.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004887/0.3163, allocations: 339.6 kB / 436.1 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/0.3164, allocations: 36.31 kB / 436.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-05/0.3165, allocations: 46.25 kB / 436.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009033/0.3174, allocations: 0.5161 MB / 436.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.3174, allocations: 2.938 kB / 436.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.744e-05/0.3174, allocations: 20.31 kB / 436.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.3174, allocations: 11.44 kB / 436.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006931/0.3181, allocations: 317.8 kB / 437.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.3205, allocations: 1.551 MB / 438.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/0.321, allocations: 201.5 kB / 438.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.3212, allocations: 86.02 kB / 438.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.3212, allocations: 2.094 kB / 438.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004162/0.3216, allocations: 220 kB / 439.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.753e-06/0.3216, allocations: 0 / 439.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.001575/0.3232, allocations: 0.7695 MB / 439.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.3233, allocations: 315.7 kB / 440.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.3237, allocations: 308.9 kB / 440.5 MB, free: 4.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.3237, allocations: 37.7 kB / 440.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.3238, allocations: 277.5 kB / 440.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.015e-05/0.3239, allocations: 90.92 kB / 440.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.324, allocations: 79.53 kB / 441 MB, free: 4.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.308e-05/0.3241, allocations: 342.7 kB / 441.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.3243, allocations: 104.7 kB / 441.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.3246, allocations: 257.1 kB / 441.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000472/0.3251, allocations: 331.4 kB / 442 MB, free: 3.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3251, allocations: 2.312 kB / 442 MB, free: 3.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001102/0.3262, allocations: 0.5312 MB / 442.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.3262, allocations: 42.05 kB / 442.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.3262, allocations: 2.906 kB / 442.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006349/0.3269, allocations: 166.7 kB / 442.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.3271, allocations: 46.75 kB / 442.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004047/0.3311, allocations: 4.935 MB / 447.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004711/0.3316, allocations: 66.03 kB / 447.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.3316, allocations: 11.97 kB / 447.8 MB, free: 14.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002723/0.3319, allocations: 166.4 kB / 448 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.332, allocations: 37.86 kB / 448 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.834e-05/0.332, allocations: 40.06 kB / 448 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.332, allocations: 6.75 kB / 448 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.3321, allocations: 0.9688 kB / 448 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.3321, allocations: 6.531 kB / 448.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005443/0.3326, allocations: 422.9 kB / 448.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3326, allocations: 1.188 kB / 448.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.3328, allocations: 33.44 kB / 448.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003431/0.3331, allocations: 105 kB / 448.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.3332, allocations: 8.141 kB / 448.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004879/0.338, allocations: 5.762 MB / 454.4 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.338, allocations: 0 / 454.4 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009589/0.339, allocations: 361.2 kB / 454.7 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.3391, allocations: 104.5 kB / 454.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.375e-05/0.3392, allocations: 16.47 kB / 454.8 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00028/0.3395, allocations: 29.27 kB / 454.9 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.3396, allocations: 32.61 kB / 454.9 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.3396, allocations: 12.62 kB / 454.9 MB, free: 7.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002912/0.3399, allocations: 219.7 kB / 455.1 MB, free: 7.336 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3399, allocations: 0 / 455.1 MB, free: 7.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007115/0.3406, allocations: 154.8 kB / 455.3 MB, free: 7.297 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (20): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001756/0.3408, allocations: 106.9 kB / 455.4 MB, free: 7.207 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.3421, allocations: 0.6996 MB / 456.1 MB, free: 6.695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3421, allocations: 1.281 kB / 456.1 MB, free: 6.695 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008068/0.3429, allocations: 0.5754 MB / 456.7 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.3433, allocations: 59.53 kB / 456.7 MB, free: 6.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.3447, allocations: 0.7143 MB / 457.4 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004791/0.3452, allocations: 0.8134 MB / 458.2 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.3453, allocations: 38.77 kB / 458.3 MB, free: 5.023 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3453, allocations: 0.9375 kB / 458.3 MB, free: 5.023 MB / 366.1 MB Notification: Performance of Templates: time 0.01498/0.3602, allocations: 10.55 MB / 468.8 MB, free: 0.7461 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Lines/CompareLosslessLines/CompareLosslessLines.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,line1.v1,line1.v2,line1.i1,line1.i2,line2.v1,line2.v2,line2.i1,line2.i2,line3.v1,line3.v2,line3.i1,line3.i2 Variables in the result:line1.i1,line1.i2,line1.v1,line1.v2,line2.i1,line2.i2,line2.v1,line2.v2,line3.i1,line3.i2,line3.v1,line3.v2,time [Calling sys.exit(0), Time elapsed: 8.619055700983154]