Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008297/0.0008297, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00111/0.001939, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007227/0.0007227, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008727/0.001595, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9932/0.9932, allocations: 177.4 MB / 189.9 MB, free: 4.848 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09039/1.084, allocations: 53.86 MB / 243.7 MB, free: 14.93 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.671e-05/1.813e-05, allocations: 2.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003332/0.00335, allocations: 2.905 MB / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.004776, allocations: 0.9075 MB / 248.9 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.004933, allocations: 7.938 kB / 248.9 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.005053, allocations: 55.38 kB / 248.9 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.005295, allocations: 131 kB / 249 MB, free: 9.602 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.005653, allocations: 227.5 kB / 249.3 MB, free: 9.379 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005205/0.006173, allocations: 0.5487 MB / 249.8 MB, free: 8.828 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.00633, allocations: 79.67 kB / 249.9 MB, free: 8.754 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004072/0.006737, allocations: 341.3 kB / 250.2 MB, free: 8.418 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.006983, allocations: 175.5 kB / 250.4 MB, free: 8.246 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.394e-05/0.007047, allocations: 48 kB / 250.4 MB, free: 8.199 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.667e-05/0.007104, allocations: 51.94 kB / 250.5 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.566e-05/0.00717, allocations: 71.75 kB / 250.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.007292, allocations: 111.8 kB / 250.7 MB, free: 7.969 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003659/0.007658, allocations: 306.9 kB / 251 MB, free: 7.668 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.591e-05/0.007674, allocations: 0 / 251 MB, free: 7.668 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.007675, allocations: 0 / 251 MB, free: 7.668 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.007695, allocations: 4 kB / 251 MB, free: 7.664 MB / 250.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.001161/0.008856, allocations: 0.7139 MB / 251.7 MB, free: 6.926 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.008887, allocations: 8.625 kB / 251.7 MB, free: 6.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.754e-05/0.008965, allocations: 48.89 kB / 251.7 MB, free: 6.871 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.009273, allocations: 220.6 kB / 252 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.009392, allocations: 131.9 kB / 252.1 MB, free: 6.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.00944, allocations: 28.38 kB / 252.1 MB, free: 6.453 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.009731, allocations: 313.2 kB / 252.4 MB, free: 6.094 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.009744, allocations: 192 / 252.4 MB, free: 6.094 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.009766, allocations: 24.05 kB / 252.4 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.009774, allocations: 4 kB / 252.5 MB, free: 6.066 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.009883, allocations: 65.3 kB / 252.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.01146, allocations: 1.104 MB / 253.6 MB, free: 4.855 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.01157, allocations: 65.12 kB / 253.7 MB, free: 4.773 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.366e-05/0.0116, allocations: 25.91 kB / 253.7 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.01162, allocations: 15.92 kB / 253.7 MB, free: 4.727 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.01164, allocations: 30.56 kB / 253.8 MB, free: 4.688 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.01165, allocations: 0 / 253.8 MB, free: 4.688 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.001722/0.01337, allocations: 0.6211 MB / 254.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.0134, allocations: 77.11 kB / 254.5 MB, free: 3.91 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.01362, allocations: 286.8 kB / 254.7 MB, free: 3.613 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.01365, allocations: 29.7 kB / 254.8 MB, free: 3.578 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.01375, allocations: 192.8 kB / 254.9 MB, free: 3.383 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.01379, allocations: 43.64 kB / 255 MB, free: 3.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.0139, allocations: 77.56 kB / 255.1 MB, free: 3.258 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.01399, allocations: 346.8 kB / 255.4 MB, free: 2.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.661e-05/0.01409, allocations: 43.97 kB / 255.4 MB, free: 2.867 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.01425, allocations: 161.5 kB / 255.6 MB, free: 2.664 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.01448, allocations: 202 kB / 255.8 MB, free: 2.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.01448, allocations: 0 / 255.8 MB, free: 2.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004299/0.01878, allocations: 1.049 MB / 256.9 MB, free: 1.367 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.0188, allocations: 4 kB / 256.9 MB, free: 1.363 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.01881, allocations: 4 kB / 256.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008896/0.02771, allocations: 2.085 MB / 258.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002896/0.028, allocations: 79.84 kB / 259 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005593/0.03359, allocations: 3.68 MB / 262.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.03389, allocations: 31.98 kB / 262.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.03391, allocations: 11.97 kB / 262.7 MB, free: 11.29 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.0001896/0.0341, allocations: 129.7 kB / 262.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.353e-05/0.03418, allocations: 23.97 kB / 262.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.03421, allocations: 25.97 kB / 262.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.03421, allocations: 0 / 262.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.03422, allocations: 3.984 kB / 262.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.03422, allocations: 7.938 kB / 262.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005323/0.03475, allocations: 393.9 kB / 263.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.03476, allocations: 0 / 263.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.03498, allocations: 63.91 kB / 263.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.128e-05/0.03502, allocations: 27.73 kB / 263.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.03502, allocations: 4 kB / 263.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.03504, allocations: 8.047 kB / 263.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.03504, allocations: 8 kB / 263.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.03504, allocations: 0 / 263.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002668/0.03531, allocations: 286.7 kB / 263.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.03534, allocations: 4 kB / 263.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.03555, allocations: 27.91 kB / 263.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.03559, allocations: 11.97 kB / 263.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.03561, allocations: 7.984 kB / 263.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000101/0.03571, allocations: 116.5 kB / 263.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03571, allocations: 4.031 kB / 263.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004294/0.03614, allocations: 96 kB / 264 MB, free: 10.02 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 0.000102/0.03624, allocations: 76.42 kB / 264 MB, free: 9.934 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.03733, allocations: 0.5978 MB / 264.6 MB, free: 9.312 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/0.03734, allocations: 4 kB / 264.6 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.041e-05/0.03741, allocations: 36.83 kB / 264.7 MB, free: 9.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.03781, allocations: 110.8 kB / 264.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.03998, allocations: 0.5844 MB / 265.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.865e-05/0.04006, allocations: 100.5 kB / 265.5 MB, free: 8.441 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.04021, allocations: 30.95 kB / 265.5 MB, free: 8.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.04039, allocations: 111.3 kB / 265.6 MB, free: 8.301 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.04039, allocations: 0 / 265.6 MB, free: 8.301 MB / 266.7 MB Notification: Performance of Templates: time 0.01288/0.05328, allocations: 10.8 MB / 276.4 MB, free: 13.58 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.81666914280504]