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.00184/0.00184, allocations: 84.95 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002458/0.002458, allocations: 158.2 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.602/1.602, allocations: 177 MB / 204.1 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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.563e-06/1.563e-06, allocations: 0 / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.263e-05/2.42e-05, allocations: 2.281 kB / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004058/0.004082, allocations: 2.698 MB / 327.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.005749, allocations: 0.8652 MB / 328.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.00591, allocations: 9.062 kB / 328.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.006121, allocations: 58.03 kB / 328.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003889/0.00651, allocations: 129.2 kB / 328.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004665/0.006976, allocations: 224.6 kB / 329 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006821/0.007658, allocations: 0.5473 MB / 329.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.007868, allocations: 73.67 kB / 329.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004158/0.008284, allocations: 303.6 kB / 329.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000368/0.008652, allocations: 171.9 kB / 330.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.722e-05/0.008739, allocations: 46.62 kB / 330.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.658e-05/0.008826, allocations: 47.66 kB / 330.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.008963, allocations: 108.1 kB / 330.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002303/0.009193, allocations: 150.4 kB / 330.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007601/0.009953, allocations: 0.5211 MB / 331 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.009959, allocations: 0 / 331 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.009961, allocations: 1.125 kB / 331 MB, free: 12.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.00997, allocations: 0 / 331 MB, free: 12.73 MB / 302.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.00194/0.01191, allocations: 0.6729 MB / 331.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.01196, allocations: 17.14 kB / 331.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.01209, allocations: 45.02 kB / 331.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006022/0.01269, allocations: 269.4 kB / 332 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.01286, allocations: 132.5 kB / 332.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.918e-05/0.01293, allocations: 30.28 kB / 332.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/0.0135, allocations: 355.7 kB / 332.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.01352, allocations: 1.25 kB / 332.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.01356, allocations: 18.38 kB / 332.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.01357, allocations: 6.75 kB / 332.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003706/0.01394, allocations: 171.1 kB / 332.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00292/0.01686, allocations: 1.287 MB / 333.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.0171, allocations: 99.84 kB / 334 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.01723, allocations: 50.5 kB / 334.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.01725, allocations: 9.766 kB / 334.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.01729, allocations: 35.94 kB / 334.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.01729, allocations: 0 / 334.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003386/0.02068, allocations: 0.9204 MB / 335.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.474e-05/0.02077, allocations: 112.5 kB / 335.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004608/0.02123, allocations: 322.8 kB / 335.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.02128, allocations: 31.17 kB / 335.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.02149, allocations: 211.9 kB / 335.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.02155, allocations: 49.88 kB / 335.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.02172, allocations: 68.88 kB / 335.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.02191, allocations: 342 kB / 336.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/0.02234, allocations: 161.5 kB / 336.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005191/0.02286, allocations: 274.5 kB / 336.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009078/0.02377, allocations: 357.5 kB / 336.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.02377, allocations: 1.438 kB / 336.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01037/0.03414, allocations: 1.302 MB / 338.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.436e-05/0.03417, allocations: 6.594 kB / 338.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.03419, allocations: 2.438 kB / 338.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01187/0.04606, allocations: 1.155 MB / 339.4 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005362/0.04659, allocations: 67.88 kB / 339.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01258/0.05917, allocations: 4.984 MB / 344.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007179/0.05989, allocations: 39.97 kB / 344.5 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-05/0.05993, allocations: 11.98 kB / 344.5 MB, free: 0.9531 MB / 302.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.0002551/0.06019, allocations: 149.7 kB / 344.7 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.944e-05/0.06028, allocations: 31.75 kB / 344.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.097e-05/0.06033, allocations: 33.95 kB / 344.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.06033, allocations: 0 / 344.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.06034, allocations: 4 kB / 344.7 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.06034, allocations: 3.984 kB / 344.7 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.06148, allocations: 0.6222 MB / 345.3 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.06148, allocations: 96 / 345.3 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.0619, allocations: 59.81 kB / 345.4 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.0619, allocations: 4 kB / 345.4 MB, free: 0 / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.24e-05/0.06195, allocations: 8.109 kB / 345.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.06195, allocations: 4 kB / 345.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.06195, allocations: 0 / 345.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009513/0.0629, allocations: 0.5102 MB / 345.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.532e-05/0.06297, allocations: 31.92 kB / 346 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.06302, allocations: 8.062 kB / 346 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004315/0.06345, allocations: 31.95 kB / 346 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.223e-05/0.06353, allocations: 19.91 kB / 346 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.06355, allocations: 7.984 kB / 346 MB, free: 15.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.0638, allocations: 219.1 kB / 346.2 MB, free: 15.15 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.0638, allocations: 0 / 346.2 MB, free: 15.15 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005508/0.06435, allocations: 100 kB / 346.3 MB, free: 15.05 MB / 318.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.0001375/0.06449, allocations: 99.25 kB / 346.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.0667, allocations: 0.7353 MB / 347.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.0667, allocations: 0 / 347.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.06696, allocations: 91.88 kB / 347.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.06756, allocations: 75.33 kB / 347.3 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.06889, allocations: 0.581 MB / 347.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.06907, allocations: 173.1 kB / 348.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001652/0.06924, allocations: 35.28 kB / 348.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.06936, allocations: 32.47 kB / 348.2 MB, free: 13.17 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.06936, allocations: 0 / 348.2 MB, free: 13.17 MB / 318.1 MB Notification: Performance of Templates: time 0.01641/0.08577, allocations: 9.788 MB / 357.9 MB, free: 3.441 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.156386945396662]