Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007896/0.0007896, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8699/0.8699, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.002e-06/1.002e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.115e-05/1.215e-05, allocations: 3.266 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002556/0.002568, allocations: 2.712 MB / 327.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009159/0.003484, allocations: 0.8533 MB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.003592, allocations: 11.94 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.003728, allocations: 47.45 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.003954, allocations: 135 kB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.00417, allocations: 227.5 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.004509, allocations: 0.5527 MB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.00465, allocations: 71.64 kB / 329.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.004846, allocations: 299.4 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.005021, allocations: 175.4 kB / 329.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.711e-05/0.005068, allocations: 44 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.216e-05/0.00511, allocations: 48 kB / 329.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.769e-05/0.005168, allocations: 103.6 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003141/0.005482, allocations: 151.6 kB / 329.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003333/0.005815, allocations: 0.5179 MB / 330.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.005817, allocations: 0 / 330.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005818, allocations: 0 / 330.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.005823, allocations: 0 / 330.5 MB, free: 9.918 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.0009159/0.006738, allocations: 0.6726 MB / 331.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.006773, allocations: 11.98 kB / 331.1 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.006819, allocations: 66.72 kB / 331.2 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.006875, allocations: 48.58 kB / 331.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.007184, allocations: 260.7 kB / 331.5 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.882e-05/0.007273, allocations: 131.9 kB / 331.6 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.007311, allocations: 32.38 kB / 331.7 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.007616, allocations: 356.6 kB / 332 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.007628, allocations: 4.141 kB / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.007648, allocations: 19.94 kB / 332 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.007654, allocations: 4 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002056/0.00786, allocations: 169.2 kB / 332.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.009289, allocations: 1.333 MB / 333.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.009422, allocations: 101.2 kB / 333.6 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.339e-05/0.009485, allocations: 53.75 kB / 333.7 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.009498, allocations: 0 / 333.7 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.00952, allocations: 38.56 kB / 333.7 MB, free: 6.398 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 8.61e-07/0.00952, allocations: 0 / 333.7 MB, free: 6.398 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001641/0.01116, allocations: 0.9366 MB / 334.7 MB, free: 5.395 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.01121, allocations: 106.8 kB / 334.8 MB, free: 5.266 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.01145, allocations: 328.4 kB / 335.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.01147, allocations: 29.7 kB / 335.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.01158, allocations: 208.4 kB / 335.3 MB, free: 4.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/0.01162, allocations: 47.64 kB / 335.4 MB, free: 4.641 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.181e-05/0.01171, allocations: 77.59 kB / 335.4 MB, free: 4.559 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.385e-05/0.0118, allocations: 338.8 kB / 335.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.01202, allocations: 155.9 kB / 335.9 MB, free: 4.066 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.01228, allocations: 278.2 kB / 336.2 MB, free: 3.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/0.01268, allocations: 354 kB / 336.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.01268, allocations: 0 / 336.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004796/0.01748, allocations: 1.299 MB / 337.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.01751, allocations: 8 kB / 337.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.01752, allocations: 0 / 337.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004725/0.02224, allocations: 1.16 MB / 339 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.02248, allocations: 59.94 kB / 339.1 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006848/0.02933, allocations: 5.032 MB / 344.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003654/0.0297, allocations: 27.98 kB / 344.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.85e-05/0.02973, allocations: 23.97 kB / 344.2 MB, free: 11.52 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.000163/0.02989, allocations: 149.8 kB / 344.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.02994, allocations: 27.81 kB / 344.3 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.02997, allocations: 34.67 kB / 344.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.02997, allocations: 3.938 kB / 344.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.02997, allocations: 0 / 344.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.02998, allocations: 4 kB / 344.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007469/0.03072, allocations: 0.6724 MB / 345 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.03073, allocations: 0 / 345 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.0309, allocations: 51.88 kB / 345.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.0309, allocations: 4 kB / 345.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.03092, allocations: 3.984 kB / 345.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.03092, allocations: 4 kB / 345.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.03092, allocations: 3.938 kB / 345.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005174/0.03144, allocations: 0.513 MB / 345.6 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.848e-05/0.03148, allocations: 35.83 kB / 345.7 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.0315, allocations: 4.125 kB / 345.7 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.03168, allocations: 31.97 kB / 345.7 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.03174, allocations: 19.91 kB / 345.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.03175, allocations: 7.984 kB / 345.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001557/0.0319, allocations: 223.2 kB / 345.9 MB, free: 9.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0319, allocations: 3.938 kB / 345.9 MB, free: 9.656 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004062/0.03231, allocations: 96 kB / 346 MB, free: 9.562 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 0.0007292/0.03304, allocations: 1.055 MB / 347.1 MB, free: 8.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.03415, allocations: 0.7316 MB / 347.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.03415, allocations: 0 / 347.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.03429, allocations: 95.86 kB / 347.9 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003722/0.03466, allocations: 76.61 kB / 348 MB, free: 7.555 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.04497, allocations: 5.199 MB / 353.2 MB, free: 2.188 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.04509, allocations: 173.1 kB / 353.4 MB, free: 2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.04522, allocations: 38.94 kB / 353.4 MB, free: 1.957 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.04535, allocations: 108.4 kB / 353.5 MB, free: 1.852 MB / 314.7 MB Notification: Performance of SimCode: time 7.01e-07/0.04535, allocations: 7.938 kB / 353.5 MB, free: 1.844 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0256/0.07096, allocations: 13.67 MB / 367.2 MB, free: 4.336 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/7.955, allocations: 11.91 kB / 367.2 MB, free: 4.324 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 9.697025957517326]