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.001739/0.001739, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002093/0.002093, allocations: 214.1 kB / 24.48 MB, free: 3.84 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.2 MB, free: 7.812 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.001584/0.001584, allocations: 51.86 kB / 379 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2321, allocations: 53.36 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004617/0.2367, allocations: 2.703 MB / 435 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.2385, allocations: 0.8611 MB / 435.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.2386, allocations: 11.88 kB / 435.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.2388, allocations: 55.44 kB / 436 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003551/0.2392, allocations: 119.2 kB / 436.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.2396, allocations: 231.6 kB / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006097/0.2402, allocations: 0.5335 MB / 436.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.2404, allocations: 67.59 kB / 436.9 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.2406, allocations: 215.2 kB / 437.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003329/0.241, allocations: 203.1 kB / 437.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.249e-05/0.241, allocations: 44 kB / 437.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.721e-05/0.2411, allocations: 48 kB / 437.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.413e-05/0.2412, allocations: 99.72 kB / 437.5 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.2414, allocations: 171.2 kB / 437.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005639/0.2419, allocations: 0.4931 MB / 438.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.242, allocations: 0 / 438.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.242, allocations: 4 kB / 438.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.242, allocations: 0 / 438.2 MB, free: 0.9062 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.001742/0.2437, allocations: 0.6726 MB / 438.8 MB, free: 208 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2437, allocations: 8.031 kB / 438.9 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.2439, allocations: 44.7 kB / 438.9 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005935/0.2444, allocations: 281.2 kB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.2446, allocations: 131.9 kB / 439.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.692e-05/0.2447, allocations: 28.38 kB / 439.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005656/0.2453, allocations: 368.2 kB / 439.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/0.2453, allocations: 3.953 kB / 439.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.2453, allocations: 12 kB / 439.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.2453, allocations: 8 kB / 439.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003607/0.2457, allocations: 161.3 kB / 439.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00286/0.2485, allocations: 1.286 MB / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.2488, allocations: 105.2 kB / 441.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.2489, allocations: 49.83 kB / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.2489, allocations: 4 kB / 441.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.249, allocations: 34.56 kB / 441.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.294e-06/0.249, allocations: 4 kB / 441.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003168/0.2521, allocations: 0.9249 MB / 442.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.07e-05/0.2522, allocations: 110.8 kB / 442.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/0.2526, allocations: 324.3 kB / 442.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.2526, allocations: 33.7 kB / 442.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.2528, allocations: 212.4 kB / 442.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.282e-05/0.2529, allocations: 43.64 kB / 443 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.253, allocations: 73.61 kB / 443.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.2532, allocations: 338.8 kB / 443.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.2536, allocations: 155.9 kB / 443.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000455/0.254, allocations: 276.6 kB / 443.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.2547, allocations: 358 kB / 444.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2547, allocations: 7.938 kB / 444.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009424/0.2642, allocations: 1.306 MB / 445.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.2642, allocations: 7.984 kB / 445.5 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.2642, allocations: 4.078 kB / 445.5 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01065/0.2748, allocations: 1.149 MB / 446.6 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.2753, allocations: 67.88 kB / 446.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.2866, allocations: 4.993 MB / 451.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000554/0.2871, allocations: 27.98 kB / 451.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-05/0.2872, allocations: 23.97 kB / 451.7 MB, free: 2.695 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.0002329/0.2874, allocations: 149.8 kB / 451.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.2875, allocations: 31.8 kB / 451.9 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.282e-05/0.2876, allocations: 29.89 kB / 451.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.2876, allocations: 0 / 451.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.2876, allocations: 0 / 451.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2876, allocations: 11.92 kB / 452 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.2888, allocations: 0.6299 MB / 452.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2888, allocations: 0 / 452.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003548/0.2891, allocations: 51.88 kB / 452.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.2891, allocations: 4 kB / 452.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.2891, allocations: 11.98 kB / 452.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.2891, allocations: 0 / 452.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2892, allocations: 0 / 452.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008751/0.29, allocations: 0.5141 MB / 453.2 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.858e-05/0.2901, allocations: 31.83 kB / 453.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.2901, allocations: 8.062 kB / 453.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003897/0.2905, allocations: 28.03 kB / 453.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.77e-05/0.2906, allocations: 19.91 kB / 453.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.2906, allocations: 11.92 kB / 453.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002553/0.2909, allocations: 223.1 kB / 453.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2909, allocations: 0 / 453.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000521/0.2914, allocations: 96 kB / 453.6 MB, free: 0.793 MB / 350.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.0001287/0.2915, allocations: 103.2 kB / 453.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002061/0.2936, allocations: 0.7267 MB / 454.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.964e-06/0.2936, allocations: 4 kB / 454.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.2938, allocations: 87.88 kB / 454.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005702/0.2944, allocations: 77.48 kB / 454.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.2958, allocations: 0.6242 MB / 455.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.296, allocations: 177 kB / 455.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.2962, allocations: 39.41 kB / 455.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2962, allocations: 0 / 455.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of Templates: time 0.011/0.3072, allocations: 6.889 MB / 462.3 MB, free: 8.004 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] "" Variables in the reference:time,currentSensor1.i,currentSensor2.i,integrator1.y,der1.y,integrator2.y,der2.y Variables in the result:currentSensor1.i,currentSensor2.i,der1.y,der2.y,integrator1.y,integrator2.y,time [Calling sys.exit(0), Time elapsed: 7.852809478994459]