Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.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.001006/0.001006, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001055/0.001055, allocations: 170 kB / 24.91 MB, free: 8.723 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.9267/0.9267, allocations: 177.1 MB / 205.3 MB, free: 5.117 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.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 273.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.24e-05/1.39e-05, allocations: 2.312 kB / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002966/0.00298, allocations: 2.9 MB / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.004455, allocations: 0.8998 MB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.004632, allocations: 7.938 kB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.004795, allocations: 59.44 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.0051, allocations: 127 kB / 277.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.005396, allocations: 223.5 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000397/0.005793, allocations: 0.5489 MB / 278.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.005939, allocations: 79.09 kB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.006174, allocations: 299.3 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.006381, allocations: 175.5 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.884e-05/0.00643, allocations: 48 kB / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.276e-05/0.006473, allocations: 48 kB / 278.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.614e-05/0.006539, allocations: 107.6 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.077e-05/0.00663, allocations: 147.6 kB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003007/0.006931, allocations: 334.8 kB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.006932, allocations: 0 / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.006933, allocations: 0 / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.137e-06/0.006937, allocations: 0 / 279.5 MB, free: 11.11 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0008642/0.007801, allocations: 0.6517 MB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.007832, allocations: 11.97 kB / 280.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.007903, allocations: 48.89 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.008154, allocations: 216.7 kB / 280.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.06e-05/0.008245, allocations: 131.9 kB / 280.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.008285, allocations: 32.38 kB / 280.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.008561, allocations: 309.3 kB / 280.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.008574, allocations: 4.188 kB / 280.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.00859, allocations: 12.12 kB / 280.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.008599, allocations: 4 kB / 280.9 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.618e-05/0.008685, allocations: 73.22 kB / 281 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.00992, allocations: 1.1 MB / 282.1 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.002e-05/0.01001, allocations: 73.03 kB / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.053e-05/0.01004, allocations: 25.91 kB / 282.2 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.01006, allocations: 4 kB / 282.2 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.01008, allocations: 30.56 kB / 282.2 MB, free: 8.207 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.01008, allocations: 0 / 282.2 MB, free: 8.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001343/0.01142, allocations: 0.622 MB / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.01146, allocations: 106.8 kB / 282.9 MB, free: 7.395 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.01164, allocations: 286.8 kB / 283.2 MB, free: 7.102 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.01166, allocations: 33.7 kB / 283.2 MB, free: 7.062 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.01174, allocations: 188.9 kB / 283.4 MB, free: 6.875 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.01177, allocations: 47.56 kB / 283.5 MB, free: 6.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.484e-05/0.01185, allocations: 81.44 kB / 283.5 MB, free: 6.742 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.061e-05/0.01193, allocations: 346.7 kB / 283.9 MB, free: 6.395 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.071e-05/0.012, allocations: 43.97 kB / 283.9 MB, free: 6.352 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.01212, allocations: 157.4 kB / 284.1 MB, free: 6.152 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.0123, allocations: 197.9 kB / 284.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.0123, allocations: 128 / 284.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003422/0.01572, allocations: 1.037 MB / 285.3 MB, free: 4.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.01574, allocations: 8 kB / 285.3 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.01575, allocations: 4 kB / 285.3 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006915/0.02266, allocations: 2.089 MB / 287.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.02285, allocations: 71.86 kB / 287.5 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1254/0.1482, allocations: 3.637 MB / 291.1 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.1486, allocations: 28.95 kB / 291.1 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.1486, allocations: 15.14 kB / 291.2 MB, free: 23.54 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (integrator1.local_reset,integrator2.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,1), (4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.1487, allocations: 131 kB / 291.3 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/0.1488, allocations: 20.17 kB / 291.3 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.144e-05/0.1488, allocations: 25.92 kB / 291.3 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1488, allocations: 2.375 kB / 291.3 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.1488, allocations: 4.938 kB / 291.3 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1488, allocations: 6.609 kB / 291.3 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004767/0.1493, allocations: 404.3 kB / 291.7 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1493, allocations: 5 kB / 291.7 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.1495, allocations: 53.92 kB / 291.8 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.1495, allocations: 4.562 kB / 291.8 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.1495, allocations: 7.672 kB / 291.8 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.1495, allocations: 1.188 kB / 291.8 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1495, allocations: 1.75 kB / 291.8 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.1498, allocations: 289.1 kB / 292.1 MB, free: 22.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.121e-05/0.1498, allocations: 25.02 kB / 292.1 MB, free: 22.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.1498, allocations: 4.641 kB / 292.1 MB, free: 22.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.15, allocations: 22.61 kB / 292.1 MB, free: 22.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.1501, allocations: 17.59 kB / 292.2 MB, free: 22.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.1501, allocations: 10.73 kB / 292.2 MB, free: 22.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001015/0.1502, allocations: 108.5 kB / 292.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1502, allocations: 0 / 292.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000394/0.1506, allocations: 98.94 kB / 292.4 MB, free: 22.95 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator2.y,integrator1.y) * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.819e-05/0.1507, allocations: 83.41 kB / 292.5 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009059/0.1516, allocations: 0.5874 MB / 293 MB, free: 22.63 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.1516, allocations: 4.984 kB / 293 MB, free: 22.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.163e-05/0.1516, allocations: 44.14 kB / 293.1 MB, free: 22.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.1519, allocations: 85.14 kB / 293.2 MB, free: 22.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009083/0.1529, allocations: 0.5629 MB / 293.7 MB, free: 22.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.269e-05/0.1529, allocations: 103.1 kB / 293.8 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.153, allocations: 31.28 kB / 293.9 MB, free: 22.24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.1532, allocations: 110.9 kB / 294 MB, free: 22.2 MB / 266.7 MB Notification: Performance of SimCode: time 9.01e-07/0.1532, allocations: 0 / 294 MB, free: 22.2 MB / 266.7 MB Notification: Performance of Templates: time 0.01231/0.1655, allocations: 10.69 MB / 304.7 MB, free: 18.76 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.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.928892365191132]