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.0009063/0.0009063, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.0008753/0.0008753, allocations: 170.4 kB / 24.92 MB, free: 8.723 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.9031/0.9031, allocations: 177.1 MB / 205.3 MB, free: 5.094 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.492e-06/1.492e-06, allocations: 0 / 273.5 MB, free: 1.156 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.162e-05/1.311e-05, allocations: 2.312 kB / 273.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003753/0.003766, allocations: 2.865 MB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.005482, allocations: 0.892 MB / 277.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.005667, allocations: 7.938 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.005848, allocations: 47.45 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003676/0.006215, allocations: 135 kB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.006616, allocations: 227.5 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005701/0.007186, allocations: 0.545 MB / 278.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.00732, allocations: 83.09 kB / 278.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.007553, allocations: 299.4 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.007745, allocations: 175.5 kB / 278.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.007798, allocations: 48 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.192e-05/0.00784, allocations: 48 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.428e-05/0.007904, allocations: 107.6 kB / 278.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.97e-05/0.008004, allocations: 147.6 kB / 279.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.008277, allocations: 338.8 kB / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.008278, allocations: 0 / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.008279, allocations: 0 / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.008282, allocations: 0 / 279.4 MB, free: 11.19 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.0007845/0.009067, allocations: 0.6516 MB / 280 MB, free: 10.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.856e-05/0.009095, allocations: 8.031 kB / 280.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.095e-05/0.009156, allocations: 48.91 kB / 280.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.009386, allocations: 220.6 kB / 280.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.491e-05/0.009461, allocations: 131.9 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.009502, allocations: 32.36 kB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.009723, allocations: 309.3 kB / 280.8 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.009733, allocations: 192 / 280.8 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.00975, allocations: 16.12 kB / 280.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.009756, allocations: 4 kB / 280.8 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.622e-05/0.009832, allocations: 65.3 kB / 280.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.01101, allocations: 1.104 MB / 282 MB, free: 8.453 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.329e-05/0.01109, allocations: 69.19 kB / 282 MB, free: 8.367 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.723e-05/0.01112, allocations: 29.64 kB / 282.1 MB, free: 8.332 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.01113, allocations: 0 / 282.1 MB, free: 8.332 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.01115, allocations: 42.62 kB / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 8.91e-07/0.01115, allocations: 0 / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001314/0.01246, allocations: 0.6095 MB / 282.7 MB, free: 7.609 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.0125, allocations: 110.8 kB / 282.8 MB, free: 7.477 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.01266, allocations: 282.8 kB / 283.1 MB, free: 7.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.01269, allocations: 33.7 kB / 283.1 MB, free: 7.148 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.659e-05/0.01277, allocations: 192.9 kB / 283.3 MB, free: 6.957 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.0128, allocations: 51.5 kB / 283.4 MB, free: 6.906 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.275e-05/0.01289, allocations: 85.44 kB / 283.5 MB, free: 6.816 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.764e-05/0.01297, allocations: 334.8 kB / 283.8 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.681e-05/0.01305, allocations: 48.89 kB / 283.8 MB, free: 6.434 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.01317, allocations: 161.4 kB / 284 MB, free: 6.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.01335, allocations: 193.9 kB / 284.2 MB, free: 6.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01335, allocations: 4 kB / 284.2 MB, free: 6 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00344/0.01679, allocations: 1.037 MB / 285.2 MB, free: 4.949 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.0168, allocations: 8 kB / 285.2 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.01681, allocations: 0 / 285.2 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006886/0.02369, allocations: 2.085 MB / 287.3 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.02387, allocations: 67.88 kB / 287.4 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1096/0.1335, allocations: 3.594 MB / 291 MB, free: 23.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.1338, allocations: 29.59 kB / 291 MB, free: 23.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.1338, allocations: 16.98 kB / 291 MB, free: 23.53 MB / 266.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.0001169/0.1339, allocations: 124.9 kB / 291.1 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.813e-05/0.134, allocations: 20.2 kB / 291.2 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.984e-05/0.134, allocations: 28.5 kB / 291.2 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.134, allocations: 2.125 kB / 291.2 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.134, allocations: 6.375 kB / 291.2 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.134, allocations: 1.891 kB / 291.2 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.1345, allocations: 406 kB / 291.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1345, allocations: 0 / 291.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.1347, allocations: 44.58 kB / 291.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1347, allocations: 7.594 kB / 291.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.1347, allocations: 8.062 kB / 291.7 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.1347, allocations: 3.828 kB / 291.7 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1347, allocations: 0.875 kB / 291.7 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.1349, allocations: 290.7 kB / 291.9 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.135, allocations: 32.52 kB / 292 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.135, allocations: 4.562 kB / 292 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.1352, allocations: 21.44 kB / 292 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.1352, allocations: 13.33 kB / 292 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.1352, allocations: 12.23 kB / 292 MB, free: 22.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.1353, allocations: 105.1 kB / 292.1 MB, free: 22.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1353, allocations: 0 / 292.1 MB, free: 22.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004121/0.1358, allocations: 102.7 kB / 292.2 MB, free: 22.94 MB / 266.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.583e-05/0.1358, allocations: 88.72 kB / 292.3 MB, free: 22.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008902/0.1367, allocations: 0.5865 MB / 292.9 MB, free: 22.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.1367, allocations: 3.312 kB / 292.9 MB, free: 22.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.086e-05/0.1368, allocations: 43.52 kB / 292.9 MB, free: 22.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.1371, allocations: 89.39 kB / 293 MB, free: 22.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009481/0.1381, allocations: 0.5659 MB / 293.6 MB, free: 22.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.807e-05/0.1382, allocations: 94.08 kB / 293.7 MB, free: 22.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.1383, allocations: 32.31 kB / 293.7 MB, free: 22.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.1384, allocations: 114 kB / 293.8 MB, free: 22.19 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1384, allocations: 0 / 293.8 MB, free: 22.19 MB / 266.7 MB Notification: Performance of Templates: time 0.01244/0.1509, allocations: 10.68 MB / 304.5 MB, free: 18.79 MB / 266.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.9625624921172857]