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.001177/0.001177, allocations: 87.62 kB / 21.43 MB, free: 3.137 MB / 18.57 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.004595/0.004595, allocations: 160.2 kB / 24.7 MB, free: 8.879 MB / 18.57 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 0.8473/0.8473, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.743e-06/1.743e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.695e-05/1.869e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002629/0.002647, allocations: 2.722 MB / 328.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.003822, allocations: 0.865 MB / 329.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.00398, allocations: 4 kB / 329.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.00414, allocations: 51.39 kB / 329.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.004408, allocations: 135 kB / 329.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.004656, allocations: 219.6 kB / 329.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004042/0.00506, allocations: 0.5566 MB / 330.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.005226, allocations: 75.62 kB / 330.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.005455, allocations: 295.4 kB / 330.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.005652, allocations: 171.5 kB / 330.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.725e-05/0.005709, allocations: 44 kB / 331 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.425e-05/0.005754, allocations: 48 kB / 331 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.781e-05/0.005821, allocations: 107.6 kB / 331.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.635e-05/0.005918, allocations: 143.6 kB / 331.3 MB, free: 9.988 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003881/0.006306, allocations: 0.5257 MB / 331.8 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.006308, allocations: 4 kB / 331.8 MB, free: 9.457 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.00631, allocations: 3.938 kB / 331.8 MB, free: 9.453 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.006316, allocations: 0 / 331.8 MB, free: 9.453 MB / 298.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.001006/0.007322, allocations: 0.6716 MB / 332.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.007354, allocations: 8.031 kB / 332.5 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.943e-05/0.007423, allocations: 40.7 kB / 332.5 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.007773, allocations: 268.6 kB / 332.8 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.007881, allocations: 131.9 kB / 332.9 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.007927, allocations: 32.38 kB / 332.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.008256, allocations: 360.6 kB / 333.3 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.008269, allocations: 192 / 333.3 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.008292, allocations: 16.12 kB / 333.3 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.008298, allocations: 4 kB / 333.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.008515, allocations: 173.2 kB / 333.5 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.009969, allocations: 1.283 MB / 334.8 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.01011, allocations: 105.2 kB / 334.9 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.558e-05/0.01018, allocations: 57.77 kB / 334.9 MB, free: 6.117 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.01019, allocations: 4 kB / 334.9 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.01021, allocations: 34.5 kB / 335 MB, free: 6.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.01021, allocations: 0 / 335 MB, free: 6.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001693/0.01191, allocations: 0.9257 MB / 335.9 MB, free: 5.082 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.01195, allocations: 106.8 kB / 336 MB, free: 4.953 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.01218, allocations: 320.4 kB / 336.3 MB, free: 4.629 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.01221, allocations: 29.7 kB / 336.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.01231, allocations: 216.4 kB / 336.5 MB, free: 4.375 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.01234, allocations: 51.59 kB / 336.6 MB, free: 4.324 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.669e-05/0.01243, allocations: 69.66 kB / 336.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.742e-05/0.01252, allocations: 342.7 kB / 337 MB, free: 3.906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.01273, allocations: 156.2 kB / 337.1 MB, free: 3.754 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.01298, allocations: 269.4 kB / 337.4 MB, free: 3.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.01341, allocations: 354 kB / 337.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01341, allocations: 0 / 337.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004007/0.01741, allocations: 1.314 MB / 339.1 MB, free: 1.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.01743, allocations: 11.94 kB / 339.1 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.01743, allocations: 4 kB / 339.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004446/0.02188, allocations: 1.149 MB / 340.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.02208, allocations: 67.86 kB / 340.3 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005962/0.02804, allocations: 4.974 MB / 345.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.02828, allocations: 39.98 kB / 345.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.02831, allocations: 19.97 kB / 345.3 MB, free: 11.26 MB / 314.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.0001346/0.02844, allocations: 149.7 kB / 345.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/0.02849, allocations: 31.75 kB / 345.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/0.02851, allocations: 25.95 kB / 345.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.02851, allocations: 4 kB / 345.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.02851, allocations: 3.938 kB / 345.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.02852, allocations: 4 kB / 345.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006441/0.02916, allocations: 0.63 MB / 346.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.02916, allocations: 0 / 346.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.02932, allocations: 48.05 kB / 346.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.02933, allocations: 3.984 kB / 346.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.02934, allocations: 3.984 kB / 346.2 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.02934, allocations: 4 kB / 346.2 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.02935, allocations: 7.984 kB / 346.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004986/0.02984, allocations: 0.514 MB / 346.8 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.02988, allocations: 31.83 kB / 346.8 MB, free: 9.738 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.0299, allocations: 4 kB / 346.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.03007, allocations: 28.05 kB / 346.8 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.866e-05/0.03012, allocations: 15.97 kB / 346.8 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.03013, allocations: 7.922 kB / 346.8 MB, free: 9.684 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001423/0.03027, allocations: 223.1 kB / 347.1 MB, free: 9.469 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03027, allocations: 96 / 347.1 MB, free: 9.469 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000333/0.03061, allocations: 103.9 kB / 347.2 MB, free: 9.367 MB / 314.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.451e-05/0.0307, allocations: 99.19 kB / 347.3 MB, free: 9.262 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.03174, allocations: 0.7276 MB / 348 MB, free: 8.508 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.03175, allocations: 256 / 348 MB, free: 8.508 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.03188, allocations: 95.88 kB / 348.1 MB, free: 8.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.03223, allocations: 84.66 kB / 348.2 MB, free: 8.332 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007916/0.03302, allocations: 0.595 MB / 348.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.03313, allocations: 177.1 kB / 348.9 MB, free: 7.516 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.03323, allocations: 40.45 kB / 349 MB, free: 7.477 MB / 314.7 MB Notification: Performance of SimCode: time 8.02e-07/0.03323, allocations: 0 / 349 MB, free: 7.477 MB / 314.7 MB Notification: Performance of Templates: time 0.006131/0.03936, allocations: 6.891 MB / 355.9 MB, free: 0.6016 MB / 314.7 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/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_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: 4.707394992932677]