Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001262/0.001262, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.001505/0.001505, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.44/1.44, allocations: 230.5 MB / 254.8 MB, free: 15.1 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-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 71.83 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1022, allocations: 53.32 MB / 427 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004379/0.1066, allocations: 2.901 MB / 429.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.1083, allocations: 0.9001 MB / 430.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.1084, allocations: 4 kB / 430.8 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.1086, allocations: 51.45 kB / 430.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002946/0.1089, allocations: 127.1 kB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003583/0.1092, allocations: 231.6 kB / 431.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000555/0.1098, allocations: 0.5296 MB / 431.8 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1801/0.2899, allocations: 77.5 kB / 431.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003826/0.2902, allocations: 205.1 kB / 432 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.2905, allocations: 220.8 kB / 432.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.222e-05/0.2906, allocations: 46.94 kB / 432.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.082e-05/0.2907, allocations: 47.62 kB / 432.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.113e-05/0.2908, allocations: 102.4 kB / 432.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.291, allocations: 205.3 kB / 432.6 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005273/0.2915, allocations: 0.4977 MB / 433.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2915, allocations: 1.25 kB / 433.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2915, allocations: 0.7188 kB / 433.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.2915, allocations: 4.438 kB / 433.1 MB, free: 7.629 MB / 350.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.001518/0.293, allocations: 0.7429 MB / 433.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2931, allocations: 9.094 kB / 433.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.258e-05/0.2931, allocations: 65 kB / 434 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.545e-05/0.2932, allocations: 41.42 kB / 434 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.2936, allocations: 333.3 kB / 434.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.46e-05/0.2937, allocations: 80.23 kB / 434.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.2938, allocations: 27.81 kB / 434.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004196/0.2942, allocations: 290.1 kB / 434.7 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.2942, allocations: 4.703 kB / 434.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.2943, allocations: 11.44 kB / 434.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2943, allocations: 5.969 kB / 434.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003372/0.2946, allocations: 167.9 kB / 434.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002595/0.2972, allocations: 1.465 MB / 436.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.2974, allocations: 103 kB / 436.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.2975, allocations: 48.17 kB / 436.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.2975, allocations: 5.016 kB / 436.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.2975, allocations: 38.59 kB / 436.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2975, allocations: 0 / 436.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003056/0.3006, allocations: 1.08 MB / 437.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.3007, allocations: 109.1 kB / 437.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/0.301, allocations: 326 kB / 438.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.3011, allocations: 31.3 kB / 438.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.3012, allocations: 215.8 kB / 438.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.3012, allocations: 52.78 kB / 438.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.3014, allocations: 69.84 kB / 438.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.369e-05/0.3014, allocations: 338 kB / 438.8 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.3018, allocations: 153.8 kB / 438.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.3022, allocations: 256 kB / 439.2 MB, free: 4.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000634/0.3028, allocations: 347.8 kB / 439.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3028, allocations: 0 / 439.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009097/0.3119, allocations: 1.313 MB / 440.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3119, allocations: 6.656 kB / 440.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3119, allocations: 7.672 kB / 440.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01065/0.3226, allocations: 1.152 MB / 442 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.3231, allocations: 71.45 kB / 442 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.3338, allocations: 5.339 MB / 447.4 MB, free: 0 / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006716/0.3344, allocations: 37.69 kB / 447.4 MB, free: 16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.961e-05/0.3345, allocations: 31.66 kB / 447.4 MB, free: 15.98 MB / 366.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.0002363/0.3347, allocations: 149.3 kB / 447.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.234e-05/0.3348, allocations: 27.97 kB / 447.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.3349, allocations: 29.45 kB / 447.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3349, allocations: 1.281 kB / 447.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3349, allocations: 1 kB / 447.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.3349, allocations: 1.156 kB / 447.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.3361, allocations: 0.7544 MB / 448.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3361, allocations: 1.281 kB / 448.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003522/0.3365, allocations: 46.77 kB / 448.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3365, allocations: 1.375 kB / 448.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.3365, allocations: 12.89 kB / 448.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.3365, allocations: 4.688 kB / 448.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3365, allocations: 4 kB / 448.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008783/0.3374, allocations: 0.5152 MB / 449 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.996e-05/0.3375, allocations: 107.3 kB / 449.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.744e-05/0.3376, allocations: 12.94 kB / 449.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.338, allocations: 24.05 kB / 449.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.859e-05/0.338, allocations: 16.19 kB / 449.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.338, allocations: 11.12 kB / 449.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00027/0.3383, allocations: 224.2 kB / 449.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3383, allocations: 0 / 449.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006112/0.3389, allocations: 97.62 kB / 449.5 MB, free: 14.69 MB / 366.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.001252/0.3402, allocations: 1.062 MB / 450.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.3423, allocations: 0.7343 MB / 451.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3423, allocations: 0 / 451.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.3426, allocations: 95.88 kB / 451.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.3432, allocations: 71.86 kB / 451.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/0.3655, allocations: 5.211 MB / 456.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.366, allocations: 0.7722 MB / 457.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000275/0.3663, allocations: 28.77 kB / 457.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.3665, allocations: 113.8 kB / 457.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3665, allocations: 0 / 457.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0461/0.4126, allocations: 11.77 MB / 469.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.48, allocations: 21.39 kB / 469.3 MB, free: 4.352 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-07 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.979953680653125] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 12.577019223943353 12.600224774 12.304212831 Calling exit ...