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.001444/0.001444, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 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.001636/0.001636, allocations: 205.5 kB / 24.51 MB, free: 3.945 MB / 14.72 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 1.472/1.472, allocations: 230.5 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 59.89 kB / 378.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3192, allocations: 53.41 MB / 431.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005199/0.3244, allocations: 2.694 MB / 434.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.3265, allocations: 0.8689 MB / 435.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003805/0.3269, allocations: 7.938 kB / 435.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.3272, allocations: 55.44 kB / 435.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006524/0.3278, allocations: 119.2 kB / 435.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006744/0.3285, allocations: 227.6 kB / 435.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009673/0.3295, allocations: 0.5374 MB / 436.4 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002621/0.3297, allocations: 79.58 kB / 436.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004184/0.3301, allocations: 211.3 kB / 436.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000447/0.3306, allocations: 219.1 kB / 436.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.635e-05/0.3307, allocations: 44 kB / 437 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.3308, allocations: 48 kB / 437 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.3309, allocations: 107.6 kB / 437.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.3312, allocations: 171.2 kB / 437.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007338/0.3319, allocations: 0.4925 MB / 437.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3319, allocations: 0 / 437.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3319, allocations: 0 / 437.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.819e-05/0.3319, allocations: 8 kB / 437.8 MB, free: 0.5938 MB / 334.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.00199/0.3339, allocations: 0.6728 MB / 438.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.334, allocations: 8.031 kB / 438.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.942e-05/0.334, allocations: 12.67 kB / 438.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.122e-05/0.3341, allocations: 54.73 kB / 438.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.3342, allocations: 48.64 kB / 438.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.3348, allocations: 277.3 kB / 438.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.335, allocations: 131.9 kB / 439 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.071e-05/0.3351, allocations: 35.88 kB / 439 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005892/0.3356, allocations: 352.1 kB / 439.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.3357, allocations: 11.89 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.3357, allocations: 8 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.3357, allocations: 11.98 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.3361, allocations: 169.2 kB / 439.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003354/0.3395, allocations: 1.333 MB / 440.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.3398, allocations: 101.2 kB / 441 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.3399, allocations: 53.83 kB / 441 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.3399, allocations: 0 / 441 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.34, allocations: 34.56 kB / 441.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.34, allocations: 0 / 441.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003445/0.3434, allocations: 0.9327 MB / 442 MB, free: 12.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.092e-05/0.3435, allocations: 106.8 kB / 442.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000537/0.344, allocations: 320.5 kB / 442.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.3441, allocations: 33.7 kB / 442.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.3443, allocations: 208.4 kB / 442.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.3443, allocations: 47.59 kB / 442.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.3445, allocations: 73.66 kB / 442.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3447, allocations: 342.8 kB / 443.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.345, allocations: 148.9 kB / 443.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004456/0.3455, allocations: 277.5 kB / 443.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007075/0.3462, allocations: 362 kB / 443.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3462, allocations: 11.94 kB / 443.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01052/0.3567, allocations: 1.299 MB / 445.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.3568, allocations: 4 kB / 445.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.3568, allocations: 4 kB / 445.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01212/0.3689, allocations: 1.153 MB / 446.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005188/0.3694, allocations: 71.88 kB / 446.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01223/0.3816, allocations: 5.022 MB / 451.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006201/0.3823, allocations: 35.97 kB / 451.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.386e-05/0.3823, allocations: 23.97 kB / 451.5 MB, free: 2.18 MB / 350.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.0002596/0.3826, allocations: 149.7 kB / 451.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.3827, allocations: 27.81 kB / 451.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.935e-05/0.3828, allocations: 26.61 kB / 451.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3828, allocations: 0 / 451.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.3828, allocations: 4.125 kB / 451.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.3828, allocations: 11.94 kB / 451.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.384, allocations: 0.6725 MB / 452.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.384, allocations: 0 / 452.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003923/0.3844, allocations: 43.89 kB / 452.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.3844, allocations: 4.094 kB / 452.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.3845, allocations: 15.86 kB / 452.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.3845, allocations: 7.984 kB / 452.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3845, allocations: 4 kB / 452.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008973/0.3854, allocations: 0.5063 MB / 453 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.093e-05/0.3855, allocations: 35.77 kB / 453 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.3855, allocations: 4 kB / 453 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004329/0.3859, allocations: 24.05 kB / 453 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.498e-05/0.386, allocations: 23.95 kB / 453.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.386, allocations: 3.984 kB / 453.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002739/0.3863, allocations: 223.1 kB / 453.3 MB, free: 336 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3863, allocations: 0 / 453.3 MB, free: 336 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006474/0.387, allocations: 99.94 kB / 453.4 MB, free: 236 kB / 350.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.001314/0.3883, allocations: 1.059 MB / 454.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.3906, allocations: 0.7354 MB / 455.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.3906, allocations: 4 kB / 455.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.3909, allocations: 87.88 kB / 455.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006673/0.3915, allocations: 79.44 kB / 455.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0249/0.4164, allocations: 5.215 MB / 460.5 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/0.4166, allocations: 165.2 kB / 460.7 MB, free: 8.668 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002309/0.4169, allocations: 34.95 kB / 460.7 MB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.4171, allocations: 107.4 kB / 460.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4171, allocations: 0 / 460.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04413/0.4612, allocations: 13.09 MB / 473.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.56, allocations: 8.047 kB / 474 MB, free: 11.61 MB / 382.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins1/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: 16.494599448051304]