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.001713/0.001713, allocations: 96.25 kB / 20.96 MB, free: 3.473 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.001994/0.001994, allocations: 160.9 kB / 24.27 MB, free: 172 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 1.491/1.491, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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.773e-06/1.773e-06, allocations: 0 / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.351e-05/3.529e-05, allocations: 2.312 kB / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005209/0.005245, allocations: 2.694 MB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.007306, allocations: 0.8689 MB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.007595, allocations: 7.938 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.007843, allocations: 55.39 kB / 275.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005094/0.008352, allocations: 127 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000519/0.008871, allocations: 231.5 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008235/0.009695, allocations: 0.5489 MB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.009907, allocations: 75.62 kB / 276.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005162/0.01042, allocations: 303.4 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000358/0.01078, allocations: 167.5 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.01088, allocations: 48 kB / 277.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.723e-05/0.01097, allocations: 48 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.01108, allocations: 103.6 kB / 277.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.01128, allocations: 143.6 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007029/0.01198, allocations: 0.5295 MB / 278.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01199, allocations: 0 / 278.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01199, allocations: 4 kB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.012, allocations: 0 / 278.1 MB, free: 11.82 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.002/0.014, allocations: 0.6648 MB / 278.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.01404, allocations: 15.98 kB / 278.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.01421, allocations: 56.7 kB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006909/0.0149, allocations: 284.6 kB / 279.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.01509, allocations: 131.9 kB / 279.3 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.113e-05/0.01517, allocations: 32.31 kB / 279.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006295/0.0158, allocations: 360.7 kB / 279.7 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.01581, allocations: 4.172 kB / 279.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.01585, allocations: 20.06 kB / 279.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.465e-06/0.01586, allocations: 4 kB / 279.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/0.01627, allocations: 165.3 kB / 279.9 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.01952, allocations: 1.298 MB / 281.2 MB, free: 8.617 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.01976, allocations: 101.2 kB / 281.3 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.01989, allocations: 53.77 kB / 281.3 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.01991, allocations: 8 kB / 281.3 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.01996, allocations: 38.56 kB / 281.4 MB, free: 8.387 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.01996, allocations: 0 / 281.4 MB, free: 8.387 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.003686/0.02365, allocations: 0.9288 MB / 282.3 MB, free: 7.395 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.896e-05/0.02374, allocations: 102.8 kB / 282.4 MB, free: 7.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004345/0.02418, allocations: 324.4 kB / 282.7 MB, free: 6.949 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.997e-05/0.02423, allocations: 29.7 kB / 282.7 MB, free: 6.914 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.02444, allocations: 216.4 kB / 282.9 MB, free: 6.695 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.93e-05/0.0245, allocations: 47.59 kB / 283 MB, free: 6.648 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.02467, allocations: 77.52 kB / 283.1 MB, free: 6.566 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.02486, allocations: 338.8 kB / 283.4 MB, free: 6.227 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004027/0.02527, allocations: 155.9 kB / 283.6 MB, free: 6.074 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005032/0.02577, allocations: 270.2 kB / 283.8 MB, free: 5.766 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007545/0.02653, allocations: 353.7 kB / 284.2 MB, free: 5.387 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.02653, allocations: 0 / 284.2 MB, free: 5.387 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01101/0.03754, allocations: 1.326 MB / 285.5 MB, free: 4.047 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.03756, allocations: 4 kB / 285.5 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.03758, allocations: 4 kB / 285.5 MB, free: 4.039 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02039/0.05797, allocations: 2.106 MB / 287.6 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005149/0.05848, allocations: 71.86 kB / 287.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01348/0.07196, allocations: 4.991 MB / 292.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006658/0.07263, allocations: 35.98 kB / 292.7 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/0.0727, allocations: 15.97 kB / 292.7 MB, free: 12.61 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.0002611/0.07296, allocations: 153.7 kB / 292.9 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.07308, allocations: 39.75 kB / 292.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.686e-05/0.07314, allocations: 21.95 kB / 292.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.07314, allocations: 4 kB / 292.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.07315, allocations: 0 / 292.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.07315, allocations: 3.984 kB / 292.9 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.07455, allocations: 0.6378 MB / 293.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.07456, allocations: 0 / 293.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000398/0.07495, allocations: 55.88 kB / 293.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.07496, allocations: 0 / 293.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.07499, allocations: 12.11 kB / 293.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.07499, allocations: 4 kB / 293.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.07499, allocations: 3.938 kB / 293.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009884/0.07598, allocations: 0.5141 MB / 294.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.299e-05/0.07605, allocations: 35.89 kB / 294.2 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/0.0761, allocations: 4 kB / 294.2 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.07654, allocations: 23.97 kB / 294.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/0.07661, allocations: 19.91 kB / 294.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/0.07664, allocations: 7.984 kB / 294.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002807/0.07692, allocations: 215.1 kB / 294.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07692, allocations: 0 / 294.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005816/0.0775, allocations: 108 kB / 294.6 MB, free: 10.7 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 0.0001408/0.07764, allocations: 95.25 kB / 294.7 MB, free: 10.59 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.07993, allocations: 0.7338 MB / 295.4 MB, free: 9.836 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.07993, allocations: 0 / 295.4 MB, free: 9.836 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.08022, allocations: 91.88 kB / 295.5 MB, free: 9.746 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006259/0.08085, allocations: 76.45 kB / 295.6 MB, free: 9.672 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.08244, allocations: 0.5946 MB / 296.1 MB, free: 9.051 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.08266, allocations: 169.1 kB / 296.3 MB, free: 8.863 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002009/0.08286, allocations: 30.97 kB / 296.3 MB, free: 8.836 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.08298, allocations: 28.47 kB / 296.4 MB, free: 8.809 MB / 282.7 MB Notification: Performance of SimCode: time 7.21e-07/0.08298, allocations: 4 kB / 296.4 MB, free: 8.805 MB / 282.7 MB Notification: Performance of Templates: time 0.1264/0.2094, allocations: 9.809 MB / 306.2 MB, free: 42.5 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=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: 4.804634926025756]