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.0008688/0.0008688, allocations: 81.95 kB / 21.42 MB, free: 3.074 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.0009065/0.0009065, allocations: 170.7 kB / 24.82 MB, free: 8.77 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.9364/0.9364, allocations: 177.1 MB / 205.3 MB, free: 5.531 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.502e-06/1.502e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.728e-05/1.878e-05, allocations: 2.312 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002869/0.002888, allocations: 2.846 MB / 276.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.003951, allocations: 0.8766 MB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.004071, allocations: 11.88 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.004205, allocations: 55.45 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.004451, allocations: 131.1 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.004702, allocations: 223.5 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.005071, allocations: 0.5489 MB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.005201, allocations: 76.48 kB / 278.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.005425, allocations: 303.4 kB / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.005606, allocations: 171.5 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.927e-05/0.005655, allocations: 52 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.685e-05/0.005702, allocations: 48 kB / 278.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.005763, allocations: 103.6 kB / 278.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.391e-05/0.005857, allocations: 147.6 kB / 279 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000282/0.006139, allocations: 338.7 kB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.006141, allocations: 4 kB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.006141, allocations: 0 / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.006145, allocations: 0 / 279.3 MB, free: 11.38 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.001105/0.00725, allocations: 0.7764 MB / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.007291, allocations: 12.03 kB / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.46e-05/0.007376, allocations: 60.7 kB / 280.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.007669, allocations: 259.5 kB / 280.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.085e-05/0.00776, allocations: 131.9 kB / 280.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.007804, allocations: 36.33 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.008069, allocations: 325.1 kB / 280.9 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.00808, allocations: 8.172 kB / 280.9 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.008098, allocations: 16.12 kB / 280.9 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.008105, allocations: 4 kB / 280.9 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.73e-05/0.008192, allocations: 73.22 kB / 281 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.009727, allocations: 1.515 MB / 282.5 MB, free: 7.977 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.99e-05/0.009827, allocations: 89.97 kB / 282.6 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.841e-05/0.009925, allocations: 31.36 kB / 282.6 MB, free: 7.824 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.009938, allocations: 8.25 kB / 282.6 MB, free: 7.816 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.009961, allocations: 37.39 kB / 282.7 MB, free: 7.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.009962, allocations: 0 / 282.7 MB, free: 7.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001254/0.01122, allocations: 0.5752 MB / 283.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.01126, allocations: 102.8 kB / 283.3 MB, free: 7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.01147, allocations: 350 kB / 283.7 MB, free: 6.641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.01149, allocations: 25.7 kB / 283.7 MB, free: 6.609 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.01161, allocations: 267 kB / 284 MB, free: 6.344 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.01164, allocations: 47.62 kB / 284 MB, free: 6.297 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.496e-05/0.01173, allocations: 87.09 kB / 284.1 MB, free: 6.203 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.01198, allocations: 0.5156 MB / 284.6 MB, free: 5.676 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.684e-05/0.01207, allocations: 59.94 kB / 284.7 MB, free: 5.617 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.01222, allocations: 198.2 kB / 284.9 MB, free: 5.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.01244, allocations: 236 kB / 285.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.01244, allocations: 0 / 285.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003857/0.01629, allocations: 1.113 MB / 286.2 MB, free: 3.953 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.01631, allocations: 4 kB / 286.2 MB, free: 3.949 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.01632, allocations: 4 kB / 286.2 MB, free: 3.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008001/0.02432, allocations: 2.099 MB / 288.3 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.02454, allocations: 63.94 kB / 288.4 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005346/0.02988, allocations: 4.832 MB / 293.2 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/0.03019, allocations: 35.98 kB / 293.2 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.03021, allocations: 11.98 kB / 293.3 MB, free: 12.67 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 (integrator1.local_reset,integrator2.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.0001368/0.03034, allocations: 180.4 kB / 293.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.941e-05/0.0304, allocations: 31.8 kB / 293.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.556e-05/0.03043, allocations: 25.97 kB / 293.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.03043, allocations: 3.938 kB / 293.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.03044, allocations: 4 kB / 293.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.03044, allocations: 3.984 kB / 293.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005343/0.03098, allocations: 0.5634 MB / 294.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.03098, allocations: 4.125 kB / 294.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001647/0.03115, allocations: 47.88 kB / 294.1 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.03115, allocations: 0 / 294.1 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.03117, allocations: 11.92 kB / 294.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.03117, allocations: 0 / 294.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.03117, allocations: 0 / 294.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.0316, allocations: 422.8 kB / 294.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.983e-05/0.03164, allocations: 27.81 kB / 294.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.03167, allocations: 15.95 kB / 294.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.03184, allocations: 19.98 kB / 294.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.03189, allocations: 15.91 kB / 294.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.0319, allocations: 7.984 kB / 294.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001254/0.03203, allocations: 226.9 kB / 294.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03203, allocations: 0 / 294.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004037/0.03243, allocations: 100 kB / 294.9 MB, free: 10.91 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.000108/0.03254, allocations: 99.25 kB / 295 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.03369, allocations: 0.7098 MB / 295.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.03369, allocations: 8.188 kB / 295.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.888e-05/0.03376, allocations: 43.58 kB / 295.8 MB, free: 10 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.03412, allocations: 79.67 kB / 295.9 MB, free: 9.934 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009369/0.03506, allocations: 0.5807 MB / 296.5 MB, free: 9.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.273e-05/0.03512, allocations: 92.61 kB / 296.6 MB, free: 9.207 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.03523, allocations: 38.95 kB / 296.6 MB, free: 9.172 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.0354, allocations: 138.1 kB / 296.7 MB, free: 9.035 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.0354, allocations: 0 / 296.7 MB, free: 9.035 MB / 282.7 MB Notification: Performance of Templates: time 0.1005/0.1359, allocations: 10.83 MB / 307.6 MB, free: 40.08 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.961391257122159]