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.001404/0.001404, allocations: 85.72 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001459/0.001459, allocations: 162.3 kB / 23.96 MB, free: 4.145 MB / 14.72 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 1.504/1.504, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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.893e-06/1.893e-06, allocations: 0 / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.633e-05/2.822e-05, allocations: 5.234 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004574/0.004602, allocations: 2.708 MB / 327.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.006704, allocations: 0.8646 MB / 328.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003564/0.007061, allocations: 7 kB / 328.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.007338, allocations: 58.17 kB / 328.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005265/0.007865, allocations: 129.4 kB / 328.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005482/0.008413, allocations: 228 kB / 329.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000863/0.009276, allocations: 0.55 MB / 329.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.009497, allocations: 73.69 kB / 329.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006469/0.01014, allocations: 301.3 kB / 330 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003562/0.0105, allocations: 170.5 kB / 330.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.643e-05/0.01059, allocations: 46.62 kB / 330.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.215e-05/0.01068, allocations: 47.12 kB / 330.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.0108, allocations: 105.1 kB / 330.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001955/0.011, allocations: 148.8 kB / 330.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006357/0.01164, allocations: 0.5263 MB / 331 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.01164, allocations: 0 / 331 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01164, allocations: 1.156 kB / 331 MB, free: 12.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.01165, allocations: 0 / 331 MB, free: 12.77 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.001803/0.01345, allocations: 0.6633 MB / 331.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.0135, allocations: 8.781 kB / 331.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.01361, allocations: 45.05 kB / 331.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.01412, allocations: 276.8 kB / 332 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/0.01429, allocations: 131.5 kB / 332.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.01436, allocations: 31.19 kB / 332.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005782/0.01494, allocations: 355.9 kB / 332.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.01496, allocations: 192 / 332.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.01499, allocations: 15.5 kB / 332.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.015, allocations: 6.656 kB / 332.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000382/0.01539, allocations: 171.2 kB / 332.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002992/0.01838, allocations: 1.286 MB / 334 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.01859, allocations: 99.41 kB / 334.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.01871, allocations: 54.34 kB / 334.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.01873, allocations: 5.125 kB / 334.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/0.01878, allocations: 41.19 kB / 334.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.01878, allocations: 0 / 334.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003388/0.02217, allocations: 0.9216 MB / 335.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.279e-05/0.02225, allocations: 108.1 kB / 335.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.02264, allocations: 326.4 kB / 335.5 MB, free: 9.199 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-05/0.02269, allocations: 31.05 kB / 335.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.02288, allocations: 208 kB / 335.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.02293, allocations: 49.62 kB / 335.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.02309, allocations: 69.53 kB / 335.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.02326, allocations: 345.1 kB / 336.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.02364, allocations: 153.8 kB / 336.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004615/0.0241, allocations: 276.2 kB / 336.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007545/0.02486, allocations: 353.4 kB / 337 MB, free: 7.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.02486, allocations: 1.281 kB / 337 MB, free: 7.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01053/0.03539, allocations: 1.31 MB / 338.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.03542, allocations: 6.75 kB / 338.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.03543, allocations: 2.469 kB / 338.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/0.04734, allocations: 1.156 MB / 339.5 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.04783, allocations: 63.88 kB / 339.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/0.0608, allocations: 4.991 MB / 344.5 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007128/0.06151, allocations: 35.97 kB / 344.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-05/0.06156, allocations: 15.98 kB / 344.6 MB, free: 1.004 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.0002961/0.06186, allocations: 149.7 kB / 344.7 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.933e-05/0.06195, allocations: 35.75 kB / 344.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.062, allocations: 21.97 kB / 344.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.06201, allocations: 7.984 kB / 344.8 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.06202, allocations: 4 kB / 344.8 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.06202, allocations: 0 / 344.8 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/0.0633, allocations: 0.6261 MB / 345.4 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.0633, allocations: 0 / 345.4 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000384/0.06369, allocations: 55.88 kB / 345.5 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.06369, allocations: 0 / 345.5 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.06372, allocations: 3.984 kB / 345.5 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.06372, allocations: 8 kB / 345.5 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.06373, allocations: 0 / 345.5 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009717/0.0647, allocations: 0.5102 MB / 346 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.911e-05/0.06477, allocations: 31.83 kB / 346 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.06482, allocations: 7.938 kB / 346 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.06523, allocations: 28.03 kB / 346.1 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.632e-05/0.06531, allocations: 19.91 kB / 346.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.06533, allocations: 7.984 kB / 346.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000381/0.06571, allocations: 219.1 kB / 346.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.06571, allocations: 0 / 346.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005967/0.06631, allocations: 104 kB / 346.4 MB, free: 15.11 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.0002028/0.06651, allocations: 99.23 kB / 346.5 MB, free: 15.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002282/0.0688, allocations: 0.7394 MB / 347.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.0688, allocations: 0 / 347.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.06906, allocations: 91.88 kB / 347.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.06972, allocations: 83.39 kB / 347.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.0713, allocations: 0.5728 MB / 348 MB, free: 13.49 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.07155, allocations: 173.1 kB / 348.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001849/0.07173, allocations: 38.91 kB / 348.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.07187, allocations: 28.47 kB / 348.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of SimCode: time 1.813e-06/0.07187, allocations: 0 / 348.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of Templates: time 0.01872/0.09059, allocations: 9.795 MB / 358 MB, free: 3.512 MB / 318.1 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] Reference file matches [Calling sys.exit(0), Time elapsed: 4.977692488580942]