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.0008342/0.0008342, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008805/0.0008805, allocations: 170.3 kB / 23.95 MB, free: 0.6094 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.8878/0.8878, allocations: 177.1 MB / 204.3 MB, free: 5.73 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 3.938 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.816e-05, allocations: 2.281 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003012/0.00303, allocations: 2.712 MB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000911/0.003941, allocations: 0.8688 MB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.00405, allocations: 4 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.004188, allocations: 51.44 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.004415, allocations: 135 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.004626, allocations: 223.5 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.004958, allocations: 0.5566 MB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.005099, allocations: 71.64 kB / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.005295, allocations: 295.4 kB / 329.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.005469, allocations: 179.4 kB / 329.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.005516, allocations: 44 kB / 329.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.873e-05/0.005554, allocations: 55.94 kB / 329.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.843e-05/0.005613, allocations: 99.7 kB / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.584e-05/0.005699, allocations: 147.6 kB / 330 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.006024, allocations: 0.518 MB / 330.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.006026, allocations: 0 / 330.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.006027, allocations: 0 / 330.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.006031, allocations: 0 / 330.5 MB, free: 9.953 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.000893/0.006924, allocations: 0.6793 MB / 331.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.006959, allocations: 12.02 kB / 331.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.115e-05/0.007, allocations: 54.73 kB / 331.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.007055, allocations: 44.7 kB / 331.3 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.007358, allocations: 264.7 kB / 331.6 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.767e-05/0.007445, allocations: 139.7 kB / 331.7 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.703e-05/0.007483, allocations: 32.38 kB / 331.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005062/0.007989, allocations: 356.7 kB / 332.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.008001, allocations: 8.078 kB / 332.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.008021, allocations: 15.94 kB / 332.1 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.008028, allocations: 7.984 kB / 332.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.008299, allocations: 165.2 kB / 332.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.009689, allocations: 1.329 MB / 333.6 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.009814, allocations: 105.2 kB / 333.7 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.934e-05/0.009874, allocations: 45.83 kB / 333.7 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.009885, allocations: 0 / 333.7 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.009905, allocations: 38.56 kB / 333.8 MB, free: 6.438 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 7.41e-07/0.009906, allocations: 0 / 333.8 MB, free: 6.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001951/0.01186, allocations: 0.9297 MB / 334.7 MB, free: 5.445 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.01191, allocations: 110.7 kB / 334.8 MB, free: 5.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.01218, allocations: 328.5 kB / 335.1 MB, free: 4.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.01221, allocations: 29.7 kB / 335.2 MB, free: 4.945 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.01232, allocations: 216.3 kB / 335.4 MB, free: 4.727 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.01235, allocations: 43.64 kB / 335.4 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.589e-05/0.01245, allocations: 73.61 kB / 335.5 MB, free: 4.605 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.42e-05/0.01253, allocations: 342.8 kB / 335.8 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002331/0.01276, allocations: 163.9 kB / 336 MB, free: 4.102 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.01301, allocations: 261.4 kB / 336.2 MB, free: 3.801 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003942/0.01341, allocations: 353.3 kB / 336.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01341, allocations: 0 / 336.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004214/0.01762, allocations: 1.306 MB / 337.9 MB, free: 2.102 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.01764, allocations: 8 kB / 337.9 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.01765, allocations: 0 / 337.9 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004798/0.02245, allocations: 1.161 MB / 339.1 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.02267, allocations: 71.86 kB / 339.1 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006175/0.02885, allocations: 5.021 MB / 344.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.02916, allocations: 31.97 kB / 344.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.02918, allocations: 19.98 kB / 344.2 MB, free: 11.56 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.0001542/0.02934, allocations: 149.7 kB / 344.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.02938, allocations: 31.8 kB / 344.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.783e-05/0.02941, allocations: 26.88 kB / 344.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.02941, allocations: 0 / 344.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.02942, allocations: 7.984 kB / 344.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.02942, allocations: 0 / 344.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007407/0.03016, allocations: 0.6724 MB / 345.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.03017, allocations: 0 / 345.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.03033, allocations: 55.88 kB / 345.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.03033, allocations: 4 kB / 345.2 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.03035, allocations: 3.984 kB / 345.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.03035, allocations: 0 / 345.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.03035, allocations: 7.938 kB / 345.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005084/0.03086, allocations: 0.518 MB / 345.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.0309, allocations: 27.84 kB / 345.7 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.03093, allocations: 4 kB / 345.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.0311, allocations: 23.97 kB / 345.7 MB, free: 9.957 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.03115, allocations: 23.91 kB / 345.8 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.03116, allocations: 3.984 kB / 345.8 MB, free: 9.93 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001635/0.03133, allocations: 227.1 kB / 346 MB, free: 9.711 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03133, allocations: 0 / 346 MB, free: 9.711 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003929/0.03172, allocations: 96 kB / 346.1 MB, free: 9.617 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.0007099/0.03243, allocations: 1.055 MB / 347.1 MB, free: 8.535 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.03357, allocations: 0.7393 MB / 347.9 MB, free: 7.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.03357, allocations: 0 / 347.9 MB, free: 7.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.03371, allocations: 100.1 kB / 348 MB, free: 7.672 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.0341, allocations: 81.95 kB / 348.1 MB, free: 7.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.04459, allocations: 5.2 MB / 353.3 MB, free: 2.238 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001272/0.04472, allocations: 173.1 kB / 353.4 MB, free: 2.047 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001619/0.04488, allocations: 38.95 kB / 353.5 MB, free: 2.004 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.04502, allocations: 108.4 kB / 353.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of SimCode: time 1.102e-06/0.04502, allocations: 0 / 353.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.07047, allocations: 13.68 MB / 367.2 MB, free: 4.414 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.046, allocations: 14.75 kB / 367.3 MB, free: 4.406 MB / 330.7 MB " [Timeout remaining time 652] (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/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: 9.82809842005372]