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.001304/0.001304, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001488/0.001488, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.425/1.425, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001941/0.001941, allocations: 68.77 kB / 378.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2864, allocations: 53.36 MB / 431.9 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004328/0.2907, allocations: 2.929 MB / 434.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.2924, allocations: 0.904 MB / 435.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.2926, allocations: 7.938 kB / 435.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.2928, allocations: 55.44 kB / 435.8 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003085/0.2931, allocations: 119.1 kB / 435.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000372/0.2934, allocations: 231.7 kB / 436.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005706/0.294, allocations: 0.5334 MB / 436.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.2942, allocations: 79.58 kB / 436.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.2944, allocations: 203.4 kB / 437 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003418/0.2948, allocations: 227.1 kB / 437.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.717e-05/0.2948, allocations: 44 kB / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.2949, allocations: 51.94 kB / 437.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.329e-05/0.295, allocations: 103.7 kB / 437.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.2952, allocations: 195.1 kB / 437.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005515/0.2957, allocations: 0.5003 MB / 438.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2957, allocations: 0 / 438.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2957, allocations: 4 kB / 438.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.2958, allocations: 0 / 438.1 MB, free: 0.7305 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.001701/0.2975, allocations: 0.6726 MB / 438.8 MB, free: 28 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.2975, allocations: 8.031 kB / 438.8 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.174e-05/0.2976, allocations: 62.73 kB / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.967e-05/0.2977, allocations: 40.7 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.2982, allocations: 277.2 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.2984, allocations: 131.9 kB / 439.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.798e-05/0.2984, allocations: 28.38 kB / 439.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004896/0.2989, allocations: 282.9 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.2989, allocations: 7.953 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.299, allocations: 8 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.299, allocations: 11.98 kB / 439.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003469/0.2993, allocations: 165.2 kB / 439.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.3021, allocations: 1.434 MB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/0.3023, allocations: 97.25 kB / 441.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.3025, allocations: 45.83 kB / 441.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.3025, allocations: 11.97 kB / 441.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.3025, allocations: 42.5 kB / 441.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.3025, allocations: 0 / 441.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.00311/0.3056, allocations: 0.9171 MB / 442.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.3057, allocations: 106.8 kB / 442.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003904/0.3061, allocations: 324.5 kB / 442.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.3062, allocations: 33.7 kB / 442.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.3063, allocations: 208.4 kB / 443 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.872e-05/0.3064, allocations: 51.59 kB / 443 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.3065, allocations: 73.64 kB / 443.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3067, allocations: 338.8 kB / 443.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003596/0.307, allocations: 151.9 kB / 443.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.3074, allocations: 259.7 kB / 443.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006649/0.3081, allocations: 357.2 kB / 444.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3081, allocations: 0 / 444.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009584/0.3177, allocations: 1.302 MB / 445.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.3177, allocations: 12.06 kB / 445.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3177, allocations: 4 kB / 445.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01088/0.3286, allocations: 1.157 MB / 446.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.3291, allocations: 59.94 kB / 446.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0116/0.3407, allocations: 5.148 MB / 451.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000568/0.3412, allocations: 35.92 kB / 451.9 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.3413, allocations: 19.97 kB / 451.9 MB, free: 2.246 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.0002037/0.3415, allocations: 153.7 kB / 452 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.046e-05/0.3416, allocations: 27.81 kB / 452.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.3416, allocations: 30.61 kB / 452.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3416, allocations: 4 kB / 452.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.3416, allocations: 0 / 452.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3416, allocations: 7.938 kB / 452.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.3428, allocations: 0.7191 MB / 452.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3428, allocations: 0 / 452.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/0.3431, allocations: 51.94 kB / 452.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3431, allocations: 7.938 kB / 452.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.3432, allocations: 4.078 kB / 452.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3432, allocations: 8.094 kB / 452.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3432, allocations: 64 / 452.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000864/0.344, allocations: 0.5258 MB / 453.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.293e-05/0.3441, allocations: 27.8 kB / 453.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.628e-05/0.3441, allocations: 7.938 kB / 453.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.3445, allocations: 27.97 kB / 453.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.77e-05/0.3446, allocations: 11.97 kB / 453.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.3446, allocations: 7.984 kB / 453.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002411/0.3449, allocations: 227.1 kB / 453.7 MB, free: 340 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3449, allocations: 0 / 453.7 MB, free: 340 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005166/0.3454, allocations: 100 kB / 453.8 MB, free: 240 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.001225/0.3466, allocations: 1.059 MB / 454.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.3487, allocations: 0.7354 MB / 455.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3487, allocations: 3.938 kB / 455.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00024/0.3489, allocations: 91.94 kB / 455.7 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.0005771/0.3495, allocations: 78.92 kB / 455.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02255/0.372, allocations: 5.191 MB / 461 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.3725, allocations: 0.7756 MB / 461.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002283/0.3727, allocations: 38.27 kB / 461.8 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.3729, allocations: 107.4 kB / 461.9 MB, free: 7.93 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3729, allocations: 3.938 kB / 461.9 MB, free: 7.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04212/0.415, allocations: 11.86 MB / 473.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.82, allocations: 8.438 kB / 473.8 MB, free: 12.2 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 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: 15.185652933083475] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 12.920253580901772 12.93623269 12.637328873 Calling exit ...