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.001866/0.001866, allocations: 83.69 kB / 20.96 MB, free: 3.316 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.001964/0.001964, allocations: 157.3 kB / 24.27 MB, free: 8 kB / 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 1.623/1.623, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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 5.691e-06/5.691e-06, allocations: 4 kB / 272.3 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.993e-05/3.562e-05, allocations: 2.312 kB / 272.3 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.006567/0.006603, allocations: 2.831 MB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002471/0.009074, allocations: 0.8689 MB / 276 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.009307, allocations: 4 kB / 276 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002787/0.009586, allocations: 63.38 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004944/0.01008, allocations: 135 kB / 276.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006087/0.01069, allocations: 223.6 kB / 276.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009474/0.01164, allocations: 0.5527 MB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.0119, allocations: 75.64 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005557/0.01246, allocations: 291.4 kB / 277.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004461/0.0129, allocations: 183.4 kB / 277.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.01302, allocations: 48 kB / 277.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.01314, allocations: 48 kB / 277.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.01331, allocations: 103.6 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002635/0.01357, allocations: 147.6 kB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009349/0.0145, allocations: 0.5257 MB / 278.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.01451, allocations: 3.984 kB / 278.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.01451, allocations: 0 / 278.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.01452, allocations: 0 / 278.4 MB, free: 11.69 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.002386/0.01691, allocations: 0.7879 MB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.01695, allocations: 8.031 kB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.0171, allocations: 60.7 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006734/0.01777, allocations: 283.4 kB / 279.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002329/0.018, allocations: 135.9 kB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.699e-05/0.0181, allocations: 28.38 kB / 279.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000874/0.01898, allocations: 392.4 kB / 280.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.01899, allocations: 192 / 280.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.01903, allocations: 12.12 kB / 280.1 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.01904, allocations: 4 kB / 280.1 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/0.01955, allocations: 149.3 kB / 280.3 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004457/0.02401, allocations: 1.658 MB / 281.9 MB, free: 7.973 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.02432, allocations: 110.2 kB / 282 MB, free: 7.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.02449, allocations: 55.42 kB / 282.1 MB, free: 7.777 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.02452, allocations: 0 / 282.1 MB, free: 7.777 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.02457, allocations: 41.39 kB / 282.1 MB, free: 7.727 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.02457, allocations: 0 / 282.1 MB, free: 7.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.003936/0.02851, allocations: 0.8987 MB / 283 MB, free: 6.758 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/0.0286, allocations: 102.8 kB / 283.1 MB, free: 6.633 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005144/0.02911, allocations: 422.2 kB / 283.5 MB, free: 6.203 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.02916, allocations: 33.7 kB / 283.6 MB, free: 6.164 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.02939, allocations: 271.1 kB / 283.8 MB, free: 5.895 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.992e-05/0.02945, allocations: 55.59 kB / 283.9 MB, free: 5.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/0.02964, allocations: 95.11 kB / 284 MB, free: 5.738 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003093/0.02994, allocations: 0.5313 MB / 284.5 MB, free: 5.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003752/0.03032, allocations: 147.9 kB / 284.6 MB, free: 5.051 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005137/0.03083, allocations: 318.1 kB / 285 MB, free: 4.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000735/0.03157, allocations: 384 kB / 285.3 MB, free: 4.254 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.03157, allocations: 0 / 285.3 MB, free: 4.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01037/0.04194, allocations: 1.347 MB / 286.7 MB, free: 2.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.04196, allocations: 8 kB / 286.7 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.04198, allocations: 4 kB / 286.7 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02078/0.06276, allocations: 2.138 MB / 288.8 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004913/0.06326, allocations: 64.81 kB / 288.9 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01348/0.07674, allocations: 6.098 MB / 295 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005944/0.07733, allocations: 27.98 kB / 295 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.07738, allocations: 19.97 kB / 295 MB, free: 10.28 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.0002503/0.07763, allocations: 196.5 kB / 295.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.07774, allocations: 39.75 kB / 295.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.07779, allocations: 21.95 kB / 295.3 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.07779, allocations: 7.938 kB / 295.3 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.0778, allocations: 0 / 295.3 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.0778, allocations: 0 / 295.3 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.07941, allocations: 0.762 MB / 296.1 MB, free: 9.199 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.07941, allocations: 0 / 296.1 MB, free: 9.199 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003841/0.0798, allocations: 47.94 kB / 296.1 MB, free: 9.152 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.0798, allocations: 4 kB / 296.1 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.07984, allocations: 3.984 kB / 296.1 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.07984, allocations: 0 / 296.1 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.07984, allocations: 4.062 kB / 296.1 MB, free: 9.141 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009772/0.08082, allocations: 0.6003 MB / 296.7 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.472e-05/0.08088, allocations: 31.8 kB / 296.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.716e-05/0.08093, allocations: 4 kB / 296.8 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.08133, allocations: 19.98 kB / 296.8 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.08141, allocations: 15.97 kB / 296.8 MB, free: 8.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.08144, allocations: 7.984 kB / 296.8 MB, free: 8.441 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003495/0.08179, allocations: 279 kB / 297.1 MB, free: 8.168 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.08179, allocations: 0 / 297.1 MB, free: 8.168 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005894/0.08238, allocations: 100 kB / 297.2 MB, free: 8.07 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.0001588/0.08254, allocations: 103.2 kB / 297.3 MB, free: 7.961 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002334/0.08487, allocations: 0.8689 MB / 298.1 MB, free: 7.059 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.08488, allocations: 0 / 298.1 MB, free: 7.059 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.08513, allocations: 103.5 kB / 298.2 MB, free: 6.953 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.08576, allocations: 75.02 kB / 298.3 MB, free: 6.883 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.08728, allocations: 0.6064 MB / 298.9 MB, free: 6.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.08748, allocations: 177.1 kB / 299.1 MB, free: 6.059 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.08766, allocations: 34.95 kB / 299.1 MB, free: 6.023 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.08779, allocations: 28.47 kB / 299.2 MB, free: 5.996 MB / 282.7 MB Notification: Performance of SimCode: time 7.82e-07/0.08779, allocations: 0 / 299.2 MB, free: 5.996 MB / 282.7 MB Notification: Performance of Templates: time 0.1238/0.2115, allocations: 10.32 MB / 309.5 MB, free: 40.57 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","/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: 5.17452773405239]