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.001299/0.001299, allocations: 69.72 kB / 21.24 MB, free: 0.5547 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.001526/0.001526, allocations: 162.5 kB / 24.5 MB, free: 3.711 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.495/1.495, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.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.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 0.001529/0.001529, allocations: 50.89 kB / 325.6 MB, free: 252 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.09989, allocations: 53.35 MB / 378.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004729/0.1046, allocations: 2.694 MB / 381.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.1063, allocations: 0.8651 MB / 382.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1065, allocations: 7.938 kB / 382.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.1067, allocations: 55.44 kB / 382.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.107, allocations: 119.2 kB / 382.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000386/0.1074, allocations: 227.6 kB / 382.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000626/0.108, allocations: 0.5452 MB / 383.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.1082, allocations: 67.66 kB / 383.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.1085, allocations: 207.3 kB / 383.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003268/0.1088, allocations: 203 kB / 383.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.281e-05/0.1089, allocations: 48 kB / 383.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.071e-05/0.109, allocations: 44 kB / 384 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.1091, allocations: 103.7 kB / 384.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001989/0.1093, allocations: 175.2 kB / 384.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005847/0.1099, allocations: 0.4981 MB / 384.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1099, allocations: 0 / 384.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1099, allocations: 0 / 384.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1099, allocations: 4 kB / 384.8 MB, free: 9.762 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001776/0.1116, allocations: 0.6687 MB / 385.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.1117, allocations: 12.03 kB / 385.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.1118, allocations: 40.7 kB / 385.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/0.1124, allocations: 281.3 kB / 385.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.1126, allocations: 127.9 kB / 385.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.598e-05/0.1126, allocations: 32.38 kB / 385.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.1132, allocations: 364.2 kB / 386.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1132, allocations: 7.953 kB / 386.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.1132, allocations: 8 kB / 386.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.1132, allocations: 11.94 kB / 386.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003661/0.1136, allocations: 161.3 kB / 386.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.1165, allocations: 1.291 MB / 387.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.1167, allocations: 105.2 kB / 387.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.1168, allocations: 45.83 kB / 387.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.1169, allocations: 4 kB / 387.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/0.1169, allocations: 38.56 kB / 387.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.993e-06/0.1169, allocations: 0 / 387.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.00326/0.1202, allocations: 0.921 MB / 388.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/0.1202, allocations: 102.8 kB / 389 MB, free: 5.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003789/0.1206, allocations: 328.3 kB / 389.3 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.1207, allocations: 29.7 kB / 389.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.1208, allocations: 216.4 kB / 389.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.1209, allocations: 51.58 kB / 389.6 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.121, allocations: 77.61 kB / 389.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1212, allocations: 334.8 kB / 390 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.1216, allocations: 155.9 kB / 390.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004491/0.122, allocations: 277.2 kB / 390.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006857/0.1227, allocations: 354 kB / 390.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1227, allocations: 0 / 390.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009789/0.1325, allocations: 1.31 MB / 392 MB, free: 2.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.1325, allocations: 11.98 kB / 392.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.1325, allocations: 0 / 392.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01139/0.1439, allocations: 1.158 MB / 393.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.1444, allocations: 67.81 kB / 393.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/0.1559, allocations: 4.973 MB / 398.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006386/0.1566, allocations: 40.06 kB / 398.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.1566, allocations: 20 kB / 398.3 MB, free: 11.55 MB / 366.1 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 (integrator2.local_reset,integrator1.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.0002365/0.1569, allocations: 150.4 kB / 398.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.811e-05/0.1569, allocations: 35.81 kB / 398.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.914e-05/0.157, allocations: 21.95 kB / 398.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.157, allocations: 4 kB / 398.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.157, allocations: 0 / 398.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.157, allocations: 3.984 kB / 398.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.1581, allocations: 0.6339 MB / 399.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1582, allocations: 0 / 399.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003922/0.1585, allocations: 52 kB / 399.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.1586, allocations: 4 kB / 399.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.1586, allocations: 7.984 kB / 399.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1586, allocations: 0 / 399.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1586, allocations: 4 kB / 399.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009245/0.1595, allocations: 0.5212 MB / 399.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.1596, allocations: 31.83 kB / 399.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.1596, allocations: 4 kB / 399.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004187/0.16, allocations: 23.97 kB / 399.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.19e-05/0.1601, allocations: 19.97 kB / 399.8 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.1601, allocations: 15.92 kB / 399.8 MB, free: 9.961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002575/0.1604, allocations: 219.1 kB / 400.1 MB, free: 9.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1604, allocations: 0 / 400.1 MB, free: 9.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005907/0.161, allocations: 104 kB / 400.2 MB, free: 9.648 MB / 366.1 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 0.0001247/0.1611, allocations: 91.25 kB / 400.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.1632, allocations: 0.7393 MB / 401 MB, free: 8.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1632, allocations: 0 / 401 MB, free: 8.785 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.1635, allocations: 96.12 kB / 401.1 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.1641, allocations: 71.34 kB / 401.1 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.1655, allocations: 0.6097 MB / 401.8 MB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.1657, allocations: 173.1 kB / 401.9 MB, free: 7.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.1659, allocations: 26.98 kB / 402 MB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.166, allocations: 36.47 kB / 402 MB, free: 7.742 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.166, allocations: 0 / 402 MB, free: 7.742 MB / 366.1 MB Notification: Performance of Templates: time 0.01642/0.1824, allocations: 9.929 MB / 411.9 MB, free: 13.89 MB / 382.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.8549164339201525]