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.001829/0.001829, allocations: 106.8 kB / 21.2 MB, free: 0.6406 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.002202/0.002202, allocations: 219 kB / 24.49 MB, free: 3.93 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.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.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.001544/0.001544, allocations: 51.91 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2112, allocations: 53.37 MB / 432.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004107/0.2154, allocations: 2.707 MB / 435.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2168, allocations: 0.8534 MB / 435.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.2169, allocations: 11.94 kB / 435.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.2171, allocations: 55.44 kB / 436 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.2174, allocations: 123.2 kB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.2177, allocations: 231.6 kB / 436.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005571/0.2183, allocations: 0.5334 MB / 436.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.2185, allocations: 75.58 kB / 436.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002246/0.2187, allocations: 211.3 kB / 437.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002973/0.219, allocations: 219.1 kB / 437.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.108e-05/0.2191, allocations: 48 kB / 437.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.326e-05/0.2192, allocations: 52 kB / 437.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.27e-05/0.2192, allocations: 95.7 kB / 437.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.2194, allocations: 175.2 kB / 437.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005227/0.2199, allocations: 0.4931 MB / 438.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2199, allocations: 0 / 438.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2199, allocations: 0 / 438.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.22, allocations: 0 / 438.2 MB, free: 0.8203 MB / 334.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.001808/0.2218, allocations: 0.6881 MB / 438.9 MB, free: 104 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.2218, allocations: 8.031 kB / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.596e-05/0.2219, allocations: 40.7 kB / 439 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004892/0.2224, allocations: 269.3 kB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.2225, allocations: 135.9 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.276e-05/0.2226, allocations: 28.38 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005832/0.2232, allocations: 364.2 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.2232, allocations: 7.953 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.2232, allocations: 4 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.2232, allocations: 8 kB / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.2236, allocations: 169.2 kB / 439.9 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003014/0.2266, allocations: 1.286 MB / 441.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.2268, allocations: 101.2 kB / 441.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.227, allocations: 53.81 kB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.326e-05/0.227, allocations: 0 / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.227, allocations: 34.56 kB / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.227, allocations: 3.938 kB / 441.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003393/0.2304, allocations: 0.9258 MB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.2305, allocations: 102.8 kB / 442.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/0.2308, allocations: 328.3 kB / 442.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.2309, allocations: 29.7 kB / 442.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.2311, allocations: 220.3 kB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.12e-05/0.2311, allocations: 47.64 kB / 443 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.2313, allocations: 77.59 kB / 443.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.2314, allocations: 338.8 kB / 443.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.2318, allocations: 155.9 kB / 443.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/0.2322, allocations: 280.7 kB / 443.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007117/0.233, allocations: 354.1 kB / 444.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.233, allocations: 0 / 444.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01121/0.2442, allocations: 1.299 MB / 445.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2442, allocations: 8 kB / 445.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.2442, allocations: 7.938 kB / 445.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01279/0.257, allocations: 1.153 MB / 446.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/0.2574, allocations: 71.86 kB / 446.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.2694, allocations: 4.984 MB / 451.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005342/0.2699, allocations: 35.97 kB / 451.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.933e-05/0.27, allocations: 23.97 kB / 451.8 MB, free: 2.605 MB / 350.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.0001831/0.2702, allocations: 149.8 kB / 451.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.454e-05/0.2702, allocations: 35.8 kB / 452 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.2703, allocations: 21.89 kB / 452 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2703, allocations: 0 / 452 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2703, allocations: 4 kB / 452 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.2704, allocations: 31.8 kB / 452 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.2704, allocations: 4 kB / 452 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004457/0.2708, allocations: 19.98 kB / 452 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.2709, allocations: 23.89 kB / 452.1 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009467/0.2719, allocations: 412 kB / 452.5 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009119/0.2728, allocations: 0.5992 MB / 453.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002247/0.273, allocations: 92.03 kB / 453.2 MB, free: 1.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.2732, allocations: 215.1 kB / 453.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of Backend: time 4.81e-07/0.2732, allocations: 0 / 453.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002291/0.2755, allocations: 0.7367 MB / 454.1 MB, free: 224 kB / 350.1 MB Notification: Performance of SimCode: time 0.001328/0.2768, allocations: 1.08 MB / 455.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of Templates: time 0.01821/0.295, allocations: 12.32 MB / 467.5 MB, free: 2.852 MB / 366.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 -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.840055145999941]