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.0009715/0.0009715, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009762/0.0009762, allocations: 164.5 kB / 24.99 MB, free: 8.746 MB / 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.9918/0.9918, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.603e-06/1.603e-06, allocations: 0 / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.941e-05/3.101e-05, allocations: 4.984 kB / 273.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.003371/0.003402, allocations: 3.569 MB / 276.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.004742, allocations: 0.8686 MB / 277.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.00491, allocations: 15.94 kB / 277.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.005078, allocations: 79.22 kB / 277.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002816/0.00536, allocations: 150.6 kB / 277.8 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.005683, allocations: 211.6 kB / 278 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007096/0.006392, allocations: 0.6384 MB / 278.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.0066, allocations: 153.4 kB / 278.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.006882, allocations: 363.3 kB / 279.1 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.007098, allocations: 219.3 kB / 279.3 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.863e-05/0.007156, allocations: 56 kB / 279.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.769e-05/0.007214, allocations: 56 kB / 279.5 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.948e-05/0.007294, allocations: 139.5 kB / 279.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.007445, allocations: 199.5 kB / 279.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.007777, allocations: 422.5 kB / 280.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.00778, allocations: 4 kB / 280.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.00778, allocations: 3.938 kB / 280.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.007785, allocations: 0 / 280.2 MB, free: 10.66 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.0009078/0.008693, allocations: 0.8873 MB / 281.1 MB, free: 9.734 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.008725, allocations: 8.031 kB / 281.1 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.008827, allocations: 92.61 kB / 281.2 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.009136, allocations: 295.9 kB / 281.5 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.009162, allocations: 41.38 kB / 281.5 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.932e-05/0.009211, allocations: 48.38 kB / 281.6 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005241/0.009735, allocations: 0.6755 MB / 282.2 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.009746, allocations: 192 / 282.2 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.009777, allocations: 23.94 kB / 282.3 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.009789, allocations: 12 kB / 282.3 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.01004, allocations: 169.9 kB / 282.4 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.01145, allocations: 1.344 MB / 283.8 MB, free: 6.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/0.01171, allocations: 151 kB / 283.9 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.378e-05/0.01179, allocations: 63.64 kB / 284 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.01181, allocations: 15.98 kB / 284 MB, free: 6.578 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/0.0121, allocations: 296.2 kB / 284.3 MB, free: 6.227 MB / 266.7 MB Notification: Performance of pre-optimization done (n=27): time 1.673e-06/0.0121, allocations: 0 / 284.3 MB, free: 6.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0007156/0.01281, allocations: 390.4 kB / 284.7 MB, free: 5.824 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.72e-05/0.01291, allocations: 320.4 kB / 285 MB, free: 5.438 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005079/0.01342, allocations: 342.2 kB / 285.3 MB, free: 5.082 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.01344, allocations: 29.7 kB / 285.4 MB, free: 5.047 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.01357, allocations: 326.8 kB / 285.7 MB, free: 4.723 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.547e-05/0.01361, allocations: 95.14 kB / 285.8 MB, free: 4.629 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.464e-05/0.0137, allocations: 91.67 kB / 285.9 MB, free: 4.527 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.01381, allocations: 0.5117 MB / 286.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.953e-05/0.0139, allocations: 74.42 kB / 286.4 MB, free: 3.926 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.01414, allocations: 0.5556 MB / 287 MB, free: 3.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.01439, allocations: 283.9 kB / 287.3 MB, free: 2.871 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-06/0.01439, allocations: 0 / 287.3 MB, free: 2.871 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005604/0.01495, allocations: 488.6 kB / 287.8 MB, free: 2.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.01498, allocations: 40.05 kB / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.01499, allocations: 0 / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004803/0.01547, allocations: 214.8 kB / 288 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.01557, allocations: 51.91 kB / 288.1 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002829/0.0184, allocations: 5.923 MB / 294 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.01856, allocations: 55.72 kB / 294 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.01857, allocations: 16 kB / 294 MB, free: 11.69 MB / 282.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.0001182/0.01869, allocations: 192.5 kB / 294.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.01873, allocations: 44 kB / 294.3 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.01876, allocations: 34.98 kB / 294.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01876, allocations: 4 kB / 294.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.01877, allocations: 8 kB / 294.3 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.01878, allocations: 3.984 kB / 294.3 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.01899, allocations: 284.3 kB / 294.6 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01899, allocations: 0 / 294.6 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.782e-05/0.01907, allocations: 31.92 kB / 294.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/0.01933, allocations: 138.6 kB / 294.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.01934, allocations: 8 kB / 294.8 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/0.02201, allocations: 7.249 MB / 302 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.02201, allocations: 0 / 302 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.02236, allocations: 322.8 kB / 302.3 MB, free: 2.801 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-05/0.02239, allocations: 31.73 kB / 302.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.02241, allocations: 4 kB / 302.4 MB, free: 2.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.02252, allocations: 28.12 kB / 302.4 MB, free: 2.738 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.998e-05/0.02262, allocations: 59.89 kB / 302.5 MB, free: 2.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.02264, allocations: 19.98 kB / 302.5 MB, free: 2.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000135/0.02277, allocations: 227 kB / 302.7 MB, free: 2.438 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02277, allocations: 0 / 302.7 MB, free: 2.438 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003648/0.02314, allocations: 155.6 kB / 302.9 MB, free: 2.285 MB / 282.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.0001093/0.02325, allocations: 111.2 kB / 303 MB, free: 2.168 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006238/0.02387, allocations: 0.8262 MB / 303.8 MB, free: 1.266 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.02387, allocations: 4 kB / 303.8 MB, free: 1.262 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.02424, allocations: 0.777 MB / 304.6 MB, free: 420 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.02447, allocations: 56.89 kB / 304.6 MB, free: 360 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09679/0.1213, allocations: 0.6542 MB / 305.3 MB, free: 41.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.284e-05/0.1213, allocations: 106.6 kB / 305.4 MB, free: 41.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001598/0.1215, allocations: 36.8 kB / 305.4 MB, free: 41.14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.73e-05/0.1216, allocations: 40.05 kB / 305.5 MB, free: 41.13 MB / 282.7 MB Notification: Performance of SimCode: time 1.083e-06/0.1216, allocations: 1.656 kB / 305.5 MB, free: 41.13 MB / 282.7 MB Notification: Performance of Templates: time 0.008465/0.13, allocations: 6.178 MB / 311.6 MB, free: 40.28 MB / 282.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: 3.031103395856917]