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.001035/0.001035, allocations: 95.5 kB / 21.2 MB, free: 3.375 MB / 18.57 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.0009705/0.0009705, allocations: 160.5 kB / 24.56 MB, free: 20 kB / 18.57 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.9474/0.9474, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.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 2.665e-06/2.665e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.566e-05/3.832e-05, allocations: 5.266 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004074/0.004113, allocations: 2.886 MB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.005315, allocations: 0.8767 MB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.005444, allocations: 7.938 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.005609, allocations: 55.44 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.005877, allocations: 127 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.006152, allocations: 231.6 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.006528, allocations: 0.5526 MB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.006684, allocations: 76.2 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.006895, allocations: 295.4 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.007091, allocations: 179.5 kB / 278.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/0.007141, allocations: 48 kB / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.831e-05/0.00719, allocations: 48 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.901e-05/0.007249, allocations: 99.66 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.589e-05/0.007345, allocations: 147.6 kB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002867/0.007631, allocations: 342.7 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.007636, allocations: 4 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.007637, allocations: 0 / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.007642, allocations: 0 / 278.9 MB, free: 11.47 MB / 266.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.000949/0.008591, allocations: 0.7725 MB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.008624, allocations: 11.98 kB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.553e-05/0.008709, allocations: 60.7 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.008988, allocations: 271.4 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.625e-05/0.009084, allocations: 135.9 kB / 280.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.009127, allocations: 32.33 kB / 280.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002967/0.009424, allocations: 341.1 kB / 280.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.009435, allocations: 192 / 280.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.009454, allocations: 12.12 kB / 280.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.009463, allocations: 11.94 kB / 280.5 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.009587, allocations: 81.28 kB / 280.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.01099, allocations: 1.561 MB / 282.1 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.0111, allocations: 94.16 kB / 282.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.215e-05/0.01114, allocations: 31.48 kB / 282.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.01115, allocations: 4 kB / 282.3 MB, free: 7.824 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.01117, allocations: 33.39 kB / 282.3 MB, free: 7.781 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.31e-07/0.01117, allocations: 7.938 kB / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001298/0.01247, allocations: 0.6652 MB / 283 MB, free: 7.039 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.01251, allocations: 106.8 kB / 283.1 MB, free: 6.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.01272, allocations: 354.2 kB / 283.4 MB, free: 6.547 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.01275, allocations: 29.7 kB / 283.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.98e-05/0.01285, allocations: 267.1 kB / 283.7 MB, free: 6.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.01287, allocations: 39.64 kB / 283.8 MB, free: 6.207 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.811e-05/0.01296, allocations: 87.27 kB / 283.8 MB, free: 6.113 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.01306, allocations: 0.5117 MB / 284.3 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.01319, allocations: 71.94 kB / 284.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.01337, allocations: 227 kB / 284.6 MB, free: 5.238 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.01363, allocations: 256.1 kB / 284.9 MB, free: 4.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.01363, allocations: 0 / 284.9 MB, free: 4.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004259/0.01789, allocations: 1.167 MB / 286.1 MB, free: 3.758 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.0179, allocations: 4 kB / 286.1 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.01791, allocations: 4 kB / 286.1 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007904/0.02581, allocations: 2.102 MB / 288.2 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.026, allocations: 63.88 kB / 288.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005256/0.03125, allocations: 4.89 MB / 293.1 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.03147, allocations: 23.98 kB / 293.1 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.03149, allocations: 23.97 kB / 293.2 MB, free: 12.39 MB / 282.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 (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.0001104/0.0316, allocations: 172.5 kB / 293.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.03165, allocations: 39.75 kB / 293.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.474e-05/0.03168, allocations: 29.95 kB / 293.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.03168, allocations: 0 / 293.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.03168, allocations: 0 / 293.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.03169, allocations: 8.031 kB / 293.4 MB, free: 12.13 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005245/0.03221, allocations: 0.6253 MB / 294 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.03221, allocations: 0 / 294 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.03237, allocations: 43.89 kB / 294.1 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.03237, allocations: 0 / 294.1 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.03239, allocations: 11.98 kB / 294.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.03239, allocations: 4 kB / 294.1 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.03239, allocations: 0 / 294.1 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.03271, allocations: 430.6 kB / 294.5 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.869e-05/0.03274, allocations: 31.8 kB / 294.5 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.03276, allocations: 8 kB / 294.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.03292, allocations: 15.98 kB / 294.6 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/0.03296, allocations: 15.97 kB / 294.6 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.03298, allocations: 12.05 kB / 294.6 MB, free: 10.88 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001348/0.03311, allocations: 243 kB / 294.8 MB, free: 10.64 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03311, allocations: 0 / 294.8 MB, free: 10.64 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003319/0.03345, allocations: 104 kB / 294.9 MB, free: 10.54 MB / 282.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 9.78e-05/0.03354, allocations: 91.25 kB / 295 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009904/0.03453, allocations: 0.7326 MB / 295.8 MB, free: 9.676 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.03454, allocations: 0 / 295.8 MB, free: 9.676 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.874e-05/0.03461, allocations: 43.59 kB / 295.8 MB, free: 9.629 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.03494, allocations: 83.27 kB / 295.9 MB, free: 9.551 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008788/0.03582, allocations: 0.5943 MB / 296.5 MB, free: 8.926 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.078e-05/0.03588, allocations: 92.61 kB / 296.6 MB, free: 8.816 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.03599, allocations: 30.97 kB / 296.6 MB, free: 8.789 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.021e-05/0.03607, allocations: 32.47 kB / 296.6 MB, free: 8.758 MB / 282.7 MB Notification: Performance of SimCode: time 7.21e-07/0.03607, allocations: 0 / 296.6 MB, free: 8.758 MB / 282.7 MB Notification: Performance of Templates: time 0.1016/0.1377, allocations: 10.76 MB / 307.4 MB, free: 39.1 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 -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: 3.178885620087385]