Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.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.0009818/0.0009818, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001024/0.001024, allocations: 168.9 kB / 24.82 MB, free: 8.914 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 1.068/1.068, allocations: 177.2 MB / 205.3 MB, free: 5.496 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.LightningLosslessTransmissionLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|source.i|load.v|load.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine") translateModel(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|source.i|load.v|load.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.891e-05/3.044e-05, allocations: 6.312 kB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004681/0.004711, allocations: 2.793 MB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.006533, allocations: 0.8491 MB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.006718, allocations: 4 kB / 277.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.006882, allocations: 39.58 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004028/0.007285, allocations: 130.9 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000516/0.007801, allocations: 203.6 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006342/0.008435, allocations: 498.1 kB / 277.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.008637, allocations: 77.53 kB / 278 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004777/0.009115, allocations: 283.4 kB / 278.3 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003287/0.009444, allocations: 175.4 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.465e-05/0.009528, allocations: 44 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.009644, allocations: 47.98 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.698e-05/0.009731, allocations: 95.7 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.009868, allocations: 135.7 kB / 278.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.01032, allocations: 303 kB / 279.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.01033, allocations: 7.984 kB / 279.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.01033, allocations: 0 / 279.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.555e-06/0.01034, allocations: 0 / 279.1 MB, free: 11.58 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001397/0.01173, allocations: 0.7295 MB / 279.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.01179, allocations: 8.031 kB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.01203, allocations: 64.69 kB / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.01242, allocations: 248.2 kB / 280.1 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.619e-05/0.01252, allocations: 80.45 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.01256, allocations: 28.38 kB / 280.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/0.01298, allocations: 348.5 kB / 280.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.01299, allocations: 192 / 280.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.01301, allocations: 16.12 kB / 280.6 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.01302, allocations: 4 kB / 280.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000141/0.01316, allocations: 55.45 kB / 280.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.01501, allocations: 0.8747 MB / 281.5 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.01527, allocations: 83.02 kB / 281.6 MB, free: 8.859 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.01539, allocations: 47.66 kB / 281.7 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.01541, allocations: 4 kB / 281.7 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.01545, allocations: 33.39 kB / 281.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 2.855e-06/0.01545, allocations: 4 kB / 281.7 MB, free: 8.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007694/0.01622, allocations: 208.9 kB / 281.9 MB, free: 8.539 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.845e-05/0.01632, allocations: 162.2 kB / 282.1 MB, free: 8.344 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003079/0.01663, allocations: 300.2 kB / 282.4 MB, free: 8.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.01666, allocations: 29.7 kB / 282.4 MB, free: 8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.01684, allocations: 235 kB / 282.6 MB, free: 7.762 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.01689, allocations: 51.56 kB / 282.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.017, allocations: 55.31 kB / 282.7 MB, free: 7.648 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.01718, allocations: 0.5001 MB / 283.2 MB, free: 7.137 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.109e-05/0.01726, allocations: 35.91 kB / 283.3 MB, free: 7.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.01743, allocations: 191.9 kB / 283.4 MB, free: 6.867 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.0176, allocations: 98.55 kB / 283.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.0176, allocations: 0 / 283.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.004965/0.02257, allocations: 0.773 MB / 284.3 MB, free: 5.977 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.02259, allocations: 4 kB / 284.3 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.0226, allocations: 0 / 284.3 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008256/0.03086, allocations: 1.451 MB / 285.8 MB, free: 4.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.046e-05/0.03095, allocations: 19.92 kB / 285.8 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004638/0.03559, allocations: 4.742 MB / 290.5 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.03575, allocations: 39.88 kB / 290.6 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.03576, allocations: 7.938 kB / 290.6 MB, free: 15.48 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (9): * Single equations (assignments): 7 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.0359, allocations: 164.6 kB / 290.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.03595, allocations: 31.86 kB / 290.8 MB, free: 15.28 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.305e-05/0.03598, allocations: 21.78 kB / 290.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.03598, allocations: 0 / 290.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.03599, allocations: 4 kB / 290.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.03599, allocations: 7.922 kB / 290.8 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005079/0.0365, allocations: 480.7 kB / 291.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.0365, allocations: 0 / 291.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.702e-05/0.03656, allocations: 27.92 kB / 291.3 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001424/0.0367, allocations: 67.34 kB / 291.4 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.03671, allocations: 0 / 291.4 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.0382, allocations: 3.683 MB / 295 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.0382, allocations: 0 / 295 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.03844, allocations: 310.7 kB / 295.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.013e-05/0.03847, allocations: 31.78 kB / 295.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.03849, allocations: 8 kB / 295.4 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.03858, allocations: 8.062 kB / 295.4 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.692e-05/0.03864, allocations: 35.89 kB / 295.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.03865, allocations: 11.98 kB / 295.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001076/0.03875, allocations: 201.1 kB / 295.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03875, allocations: 0 / 295.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003626/0.03912, allocations: 99.84 kB / 295.7 MB, free: 9.996 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (11): * Single equations (assignments): 9 * 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,2,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.0001091/0.03923, allocations: 107.1 kB / 295.8 MB, free: 9.883 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007729/0.04, allocations: 0.5868 MB / 296.4 MB, free: 9.262 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.04, allocations: 0 / 296.4 MB, free: 9.262 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.04022, allocations: 407.3 kB / 296.8 MB, free: 8.824 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.04049, allocations: 60.33 kB / 296.9 MB, free: 8.766 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008138/0.04131, allocations: 0.5144 MB / 297.4 MB, free: 8.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.033e-05/0.04137, allocations: 92.3 kB / 297.5 MB, free: 8.121 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.725e-05/0.04143, allocations: 21.95 kB / 297.5 MB, free: 8.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.04158, allocations: 134.2 kB / 297.6 MB, free: 7.969 MB / 282.7 MB Notification: Performance of SimCode: time 1.313e-06/0.04158, allocations: 0 / 297.6 MB, free: 7.969 MB / 282.7 MB Notification: Performance of Templates: time 0.1116/0.1532, allocations: 8.977 MB / 306.6 MB, free: 39.31 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Lines/LightningLosslessTransmissionLine/LightningLosslessTransmissionLine.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.0275492388755083]