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.001307/0.001307, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001415/0.001415, allocations: 214.1 kB / 24.52 MB, free: 3.941 MB / 14.72 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.438/1.438, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 47.88 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2785, allocations: 53.36 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004241/0.2827, allocations: 2.704 MB / 434.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.2842, allocations: 0.865 MB / 435.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.2843, allocations: 7.938 kB / 435.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.2845, allocations: 55.44 kB / 435.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.2848, allocations: 123.1 kB / 435.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.2851, allocations: 219.7 kB / 435.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000554/0.2857, allocations: 0.5374 MB / 436.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2859, allocations: 79.56 kB / 436.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.2861, allocations: 207.3 kB / 436.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.2864, allocations: 231.1 kB / 436.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.2865, allocations: 44 kB / 436.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.321e-05/0.2866, allocations: 48 kB / 437 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.2867, allocations: 95.72 kB / 437.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.2869, allocations: 179.2 kB / 437.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005368/0.2874, allocations: 0.4925 MB / 437.7 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2874, allocations: 0 / 437.7 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2874, allocations: 8 kB / 437.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.2874, allocations: 0 / 437.7 MB, free: 0.7656 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.001655/0.2891, allocations: 0.6688 MB / 438.4 MB, free: 68 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.2891, allocations: 8.031 kB / 438.4 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.377e-05/0.2891, allocations: 8.688 kB / 438.4 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.572e-05/0.2892, allocations: 62.8 kB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.782e-05/0.2893, allocations: 40.7 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004833/0.2898, allocations: 277.2 kB / 438.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.29, allocations: 135.9 kB / 438.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.313e-05/0.29, allocations: 32.12 kB / 439 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.2905, allocations: 356 kB / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.2906, allocations: 7.953 kB / 439.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.2906, allocations: 8 kB / 439.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.2906, allocations: 8 kB / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003326/0.2909, allocations: 161.3 kB / 439.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002835/0.2938, allocations: 1.333 MB / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.294, allocations: 105.2 kB / 440.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.2941, allocations: 53.81 kB / 441 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.2941, allocations: 0 / 441 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.2941, allocations: 42.5 kB / 441 MB, free: 13.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.2941, allocations: 3.938 kB / 441 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003086/0.2972, allocations: 0.9257 MB / 441.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/0.2973, allocations: 102.8 kB / 442 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.2977, allocations: 324.5 kB / 442.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.972e-05/0.2977, allocations: 37.7 kB / 442.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.2979, allocations: 208.4 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.2979, allocations: 47.59 kB / 442.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.2981, allocations: 73.64 kB / 442.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2982, allocations: 338.8 kB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003356/0.2986, allocations: 151.9 kB / 443.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/0.299, allocations: 280.6 kB / 443.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.2997, allocations: 354.1 kB / 443.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2997, allocations: 4 kB / 443.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009612/0.3093, allocations: 1.309 MB / 445.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3093, allocations: 6.812 kB / 445.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3093, allocations: 4 kB / 445.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01115/0.3205, allocations: 1.149 MB / 446.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.3209, allocations: 71.86 kB / 446.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.3324, allocations: 5.039 MB / 451.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005922/0.333, allocations: 31.97 kB / 451.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.333, allocations: 15.98 kB / 451.4 MB, free: 2.363 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.0002207/0.3332, allocations: 149.7 kB / 451.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.3333, allocations: 27.81 kB / 451.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.477e-05/0.3334, allocations: 30.61 kB / 451.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3334, allocations: 0 / 451.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3334, allocations: 11.88 kB / 451.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3334, allocations: 7.984 kB / 451.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.3345, allocations: 0.6647 MB / 452.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3345, allocations: 96 / 452.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000376/0.3349, allocations: 55.88 kB / 452.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.3349, allocations: 7.922 kB / 452.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.3349, allocations: 3.984 kB / 452.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3349, allocations: 4 kB / 452.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3349, allocations: 4 kB / 452.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008552/0.3358, allocations: 0.5141 MB / 452.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.3358, allocations: 35.77 kB / 453 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.751e-05/0.3359, allocations: 0 / 453 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.3363, allocations: 36.03 kB / 453 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.491e-05/0.3364, allocations: 11.97 kB / 453 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.3364, allocations: 3.984 kB / 453 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002491/0.3366, allocations: 227.1 kB / 453.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3366, allocations: 0 / 453.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005294/0.3372, allocations: 100 kB / 453.3 MB, free: 416 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.001251/0.3384, allocations: 1.063 MB / 454.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.3406, allocations: 0.7316 MB / 455.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3406, allocations: 0 / 455.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.3409, allocations: 95.88 kB / 455.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000587/0.3415, allocations: 78.62 kB / 455.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/0.3647, allocations: 5.205 MB / 460.5 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.3649, allocations: 173.1 kB / 460.7 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002308/0.3652, allocations: 34.95 kB / 460.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.3654, allocations: 107.4 kB / 460.8 MB, free: 8.703 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3654, allocations: 3.938 kB / 460.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03968/0.4051, allocations: 13.08 MB / 473.9 MB, free: 11.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.41, allocations: 5.75 kB / 473.9 MB, free: 11.84 MB / 382.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_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: 16.268758321995847]