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.001206/0.001206, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001113/0.001113, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9461/0.9461, allocations: 177.1 MB / 205 MB, free: 5.285 MB / 186.7 MB " [Timeout remaining time 179] 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 1.714e-06/1.714e-06, allocations: 0 / 273 MB, free: 1.352 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.345e-05/2.517e-05, allocations: 2.312 kB / 273 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.003742/0.003767, allocations: 3.584 MB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.005158, allocations: 0.8764 MB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.005327, allocations: 11.94 kB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.005485, allocations: 75.22 kB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.005775, allocations: 158.6 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.0061, allocations: 207.5 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004739/0.006574, allocations: 0.6462 MB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.006783, allocations: 149.4 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.007084, allocations: 367.3 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.007384, allocations: 215.3 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.007487, allocations: 63.94 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.634e-05/0.007564, allocations: 56 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.97e-05/0.007633, allocations: 127.5 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.007775, allocations: 207.5 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003362/0.008111, allocations: 426.5 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.008113, allocations: 0 / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.008113, allocations: 0 / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.00812, allocations: 0 / 280.1 MB, free: 10.19 MB / 266.7 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.0009482/0.009068, allocations: 0.8834 MB / 281 MB, free: 9.262 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.009099, allocations: 8.031 kB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.009211, allocations: 96.61 kB / 281.1 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.009516, allocations: 299.9 kB / 281.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.009541, allocations: 33.38 kB / 281.5 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.009585, allocations: 52.38 kB / 281.5 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005702/0.01016, allocations: 0.6716 MB / 282.2 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.01017, allocations: 192 / 282.2 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.662e-05/0.0102, allocations: 23.94 kB / 282.2 MB, free: 7.961 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.01022, allocations: 12 kB / 282.2 MB, free: 7.949 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.01048, allocations: 181.8 kB / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.01191, allocations: 1.34 MB / 283.7 MB, free: 6.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.01216, allocations: 151 kB / 283.9 MB, free: 6.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.458e-05/0.01223, allocations: 59.66 kB / 283.9 MB, free: 6.117 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.01225, allocations: 4 kB / 283.9 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.01249, allocations: 296.2 kB / 284.2 MB, free: 5.762 MB / 266.7 MB Notification: Performance of pre-optimization done (n=27): time 1.242e-06/0.01249, allocations: 0 / 284.2 MB, free: 5.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006981/0.01319, allocations: 398.4 kB / 284.6 MB, free: 5.352 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.695e-05/0.01329, allocations: 320.4 kB / 284.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002144/0.0135, allocations: 338.2 kB / 285.3 MB, free: 4.613 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.01352, allocations: 33.7 kB / 285.3 MB, free: 4.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.01366, allocations: 326.8 kB / 285.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.763e-05/0.01371, allocations: 91.22 kB / 285.7 MB, free: 4.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.835e-05/0.01379, allocations: 83.67 kB / 285.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.01392, allocations: 0.5156 MB / 286.3 MB, free: 3.539 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.124e-05/0.01401, allocations: 78.42 kB / 286.4 MB, free: 3.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.01427, allocations: 0.5478 MB / 286.9 MB, free: 2.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/0.0145, allocations: 291.9 kB / 287.2 MB, free: 2.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.0145, allocations: 0 / 287.2 MB, free: 2.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005383/0.01504, allocations: 488.7 kB / 287.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.01507, allocations: 29.7 kB / 287.7 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.01508, allocations: 7.938 kB / 287.7 MB, free: 1.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004968/0.01557, allocations: 206.8 kB / 287.9 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.01568, allocations: 51.91 kB / 288 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.115/0.1307, allocations: 5.917 MB / 293.9 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.131, allocations: 56.34 kB / 294 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.131, allocations: 15.52 kB / 294 MB, free: 20.93 MB / 266.7 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.0001534/0.1311, allocations: 188 kB / 294.2 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.1312, allocations: 45.44 kB / 294.2 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.722e-05/0.1312, allocations: 35.53 kB / 294.2 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1312, allocations: 3.094 kB / 294.2 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.1312, allocations: 10.95 kB / 294.2 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1313, allocations: 2.031 kB / 294.2 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.1315, allocations: 285.5 kB / 294.5 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.1315, allocations: 2.594 kB / 294.5 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.1316, allocations: 34.03 kB / 294.6 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003362/0.132, allocations: 135.5 kB / 294.7 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.132, allocations: 10.58 kB / 294.7 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.134, allocations: 7.255 MB / 302 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.134, allocations: 0.5 kB / 302 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000464/0.1345, allocations: 320 kB / 302.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-05/0.1346, allocations: 38.42 kB / 302.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.1346, allocations: 7.547 kB / 302.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1347, allocations: 27.64 kB / 302.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.1349, allocations: 65.75 kB / 302.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.1349, allocations: 12.34 kB / 302.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001719/0.1351, allocations: 228.6 kB / 302.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1351, allocations: 0 / 302.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005537/0.1356, allocations: 150.1 kB / 302.8 MB, free: 13.15 MB / 266.7 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.0001087/0.1357, allocations: 107.4 kB / 302.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006938/0.1364, allocations: 0.8254 MB / 303.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1364, allocations: 1.031 kB / 303.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003539/0.1368, allocations: 0.7726 MB / 304.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.1371, allocations: 54.53 kB / 304.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.1383, allocations: 0.6602 MB / 305.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.625e-05/0.1384, allocations: 107.5 kB / 305.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.1385, allocations: 41.69 kB / 305.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.418e-05/0.1386, allocations: 38.94 kB / 305.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1386, allocations: 0 / 305.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of Templates: time 0.01115/0.1497, allocations: 6.467 MB / 311.9 MB, free: 9.66 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Lines/CompareLosslessLines/CompareLosslessLines.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9301838907413185]