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.001598/0.001598, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001423/0.001423, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.415/1.415, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.001927/0.001927, allocations: 64.77 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2659, allocations: 53.37 MB / 431.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004389/0.2703, allocations: 2.925 MB / 434.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.272, allocations: 0.8962 MB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001597/0.2721, allocations: 11.94 kB / 435.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.2723, allocations: 59.38 kB / 435.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003103/0.2726, allocations: 123.1 kB / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.273, allocations: 223.7 kB / 436.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006139/0.2736, allocations: 0.5412 MB / 436.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.2738, allocations: 75.58 kB / 436.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.274, allocations: 203.3 kB / 437 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003313/0.2744, allocations: 227.1 kB / 437.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.012e-05/0.2744, allocations: 51.98 kB / 437.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.924e-05/0.2745, allocations: 48 kB / 437.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.2746, allocations: 95.67 kB / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.2748, allocations: 203 kB / 437.6 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005798/0.2754, allocations: 0.5003 MB / 438.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2754, allocations: 0 / 438.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2754, allocations: 3.938 kB / 438.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.2754, allocations: 0 / 438.1 MB, free: 0.8594 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.001666/0.2771, allocations: 0.6688 MB / 438.8 MB, free: 164 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.2771, allocations: 8.031 kB / 438.8 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.186e-05/0.2772, allocations: 66.72 kB / 438.8 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.961e-05/0.2773, allocations: 40.7 kB / 438.9 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.2778, allocations: 277.2 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.278, allocations: 127.9 kB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.092e-05/0.2781, allocations: 36.36 kB / 439.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.2785, allocations: 282.9 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.2786, allocations: 3.953 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.2786, allocations: 12 kB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.2786, allocations: 4 kB / 439.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.279, allocations: 165.3 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002793/0.2817, allocations: 1.426 MB / 441.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.282, allocations: 101.2 kB / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.2821, allocations: 49.83 kB / 441.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.2821, allocations: 7.984 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.2822, allocations: 34.56 kB / 441.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.054e-06/0.2822, allocations: 0 / 441.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003165/0.2853, allocations: 0.9249 MB / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/0.2854, allocations: 118.7 kB / 442.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003757/0.2858, allocations: 320.5 kB / 442.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.2858, allocations: 29.7 kB / 442.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.286, allocations: 212.4 kB / 443 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.286, allocations: 47.59 kB / 443 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.2862, allocations: 69.66 kB / 443.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.2864, allocations: 342.8 kB / 443.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/0.2867, allocations: 155.9 kB / 443.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.2872, allocations: 248.8 kB / 443.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006423/0.2878, allocations: 357.4 kB / 444.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2878, allocations: 4 kB / 444.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009652/0.2975, allocations: 1.31 MB / 445.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.2975, allocations: 4 kB / 445.5 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.2975, allocations: 4.078 kB / 445.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/0.3087, allocations: 1.157 MB / 446.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.3092, allocations: 67.88 kB / 446.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/0.3208, allocations: 5.14 MB / 451.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005884/0.3214, allocations: 39.91 kB / 451.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/0.3214, allocations: 15.97 kB / 451.9 MB, free: 2.383 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.000214/0.3217, allocations: 153.7 kB / 452 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.792e-05/0.3217, allocations: 27.81 kB / 452.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.128e-05/0.3218, allocations: 34.61 kB / 452.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3218, allocations: 4 kB / 452.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.3218, allocations: 0 / 452.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.3218, allocations: 4.125 kB / 452.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.3229, allocations: 0.723 MB / 452.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3229, allocations: 0 / 452.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.3233, allocations: 59.88 kB / 452.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.259e-06/0.3233, allocations: 3.938 kB / 452.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.3234, allocations: 7.984 kB / 452.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3234, allocations: 0 / 452.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3234, allocations: 0 / 452.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008455/0.3242, allocations: 0.5172 MB / 453.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.817e-05/0.3243, allocations: 31.83 kB / 453.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.403e-05/0.3243, allocations: 3.938 kB / 453.5 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004005/0.3247, allocations: 35.91 kB / 453.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.752e-05/0.3248, allocations: 12.03 kB / 453.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.3248, allocations: 7.984 kB / 453.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002509/0.3251, allocations: 227.1 kB / 453.7 MB, free: 480 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3251, allocations: 0 / 453.7 MB, free: 480 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005356/0.3256, allocations: 100 kB / 453.8 MB, free: 380 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.00121/0.3268, allocations: 1.055 MB / 454.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002057/0.3289, allocations: 0.7316 MB / 455.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3289, allocations: 3.938 kB / 455.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002484/0.3291, allocations: 100.1 kB / 455.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005604/0.3297, allocations: 80.83 kB / 455.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02242/0.3521, allocations: 5.191 MB / 461 MB, free: 9.004 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.3525, allocations: 0.7756 MB / 461.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002545/0.3528, allocations: 30.52 kB / 461.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.353, allocations: 107.4 kB / 461.9 MB, free: 8.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.353, allocations: 4 kB / 461.9 MB, free: 8.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/0.3947, allocations: 11.87 MB / 473.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.33, allocations: 8.562 kB / 473.8 MB, free: 12.34 MB / 382.1 MB " [Timeout remaining time 648] (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.81553269457072] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 12.425043473020196 12.440388423 12.16200635 Calling exit ...