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.001653/0.001653, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001757/0.001757, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.439/1.439, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001426/0.001426, allocations: 55.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1159, allocations: 53.33 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004874/0.1207, allocations: 2.898 MB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.1225, allocations: 0.8962 MB / 430.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.1226, allocations: 4 kB / 430.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.1229, allocations: 55.38 kB / 430.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003378/0.1232, allocations: 119.2 kB / 431 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.1236, allocations: 231.6 kB / 431.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006106/0.1242, allocations: 0.5296 MB / 431.8 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2561/0.3803, allocations: 80.73 kB / 431.8 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005098/0.3808, allocations: 200.9 kB / 432 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003571/0.3811, allocations: 225.3 kB / 432.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.885e-05/0.3812, allocations: 46.78 kB / 432.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.035e-05/0.3813, allocations: 48.22 kB / 432.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.702e-05/0.3814, allocations: 103.8 kB / 432.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.3816, allocations: 206 kB / 432.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006235/0.3823, allocations: 0.494 MB / 433.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3823, allocations: 0.9062 kB / 433.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3823, allocations: 0.5625 kB / 433.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.036e-06/0.3823, allocations: 3.938 kB / 433.2 MB, free: 7.566 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.001609/0.3839, allocations: 0.7437 MB / 433.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3839, allocations: 12.59 kB / 433.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.035e-05/0.3839, allocations: 4.938 kB / 433.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.8e-05/0.384, allocations: 60.61 kB / 434 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.709e-05/0.3841, allocations: 44.66 kB / 434 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.3845, allocations: 335.1 kB / 434.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.85e-05/0.3846, allocations: 83.91 kB / 434.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.117e-05/0.3847, allocations: 29.66 kB / 434.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.3851, allocations: 290.1 kB / 434.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.3851, allocations: 5.016 kB / 434.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.3852, allocations: 9.969 kB / 434.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3852, allocations: 5.469 kB / 434.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003313/0.3855, allocations: 160.4 kB / 434.9 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002596/0.3881, allocations: 1.465 MB / 436.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.3883, allocations: 108.1 kB / 436.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.3884, allocations: 49.81 kB / 436.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.3884, allocations: 4.938 kB / 436.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.3884, allocations: 37.22 kB / 436.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.3884, allocations: 4 kB / 436.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003006/0.3914, allocations: 1.073 MB / 437.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.3915, allocations: 112 kB / 437.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.3918, allocations: 321.4 kB / 438.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.3919, allocations: 34.73 kB / 438.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.392, allocations: 208.4 kB / 438.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.392, allocations: 54.45 kB / 438.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.3922, allocations: 70.89 kB / 438.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.821e-05/0.3923, allocations: 337.2 kB / 438.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.3926, allocations: 153.9 kB / 438.9 MB, free: 4.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.393, allocations: 248.3 kB / 439.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.3936, allocations: 354.4 kB / 439.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3936, allocations: 1.188 kB / 439.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009432/0.4031, allocations: 1.313 MB / 440.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.4031, allocations: 11.36 kB / 440.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.4031, allocations: 6.469 kB / 440.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01052/0.4136, allocations: 1.151 MB / 442 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/0.4142, allocations: 66.94 kB / 442.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.425, allocations: 5.348 MB / 447.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006303/0.4256, allocations: 43.89 kB / 447.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.4257, allocations: 19.8 kB / 447.5 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.00024/0.4259, allocations: 146.2 kB / 447.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.382e-05/0.426, allocations: 29.16 kB / 447.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.528e-05/0.426, allocations: 27.02 kB / 447.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.426, allocations: 3.094 kB / 447.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.426, allocations: 0 / 447.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.426, allocations: 11.91 kB / 447.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.4273, allocations: 0.7414 MB / 448.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.4273, allocations: 1.125 kB / 448.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.4277, allocations: 52.48 kB / 448.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.4277, allocations: 5.906 kB / 448.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.4277, allocations: 9.812 kB / 448.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.4277, allocations: 3.453 kB / 448.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4277, allocations: 0 / 448.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009101/0.4286, allocations: 0.5234 MB / 449 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.4287, allocations: 106.8 kB / 449.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.584e-05/0.4288, allocations: 5.453 kB / 449.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/0.4292, allocations: 28.44 kB / 449.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-05/0.4293, allocations: 18.36 kB / 449.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.4293, allocations: 6.719 kB / 449.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002809/0.4296, allocations: 223.6 kB / 449.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4296, allocations: 4.062 kB / 449.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000829/0.4304, allocations: 98.78 kB / 449.5 MB, free: 14.68 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.001319/0.4317, allocations: 1.061 MB / 450.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002449/0.4342, allocations: 0.7339 MB / 451.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4342, allocations: 0 / 451.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002777/0.4344, allocations: 100.3 kB / 451.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006594/0.4351, allocations: 72.94 kB / 451.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0231/0.4582, allocations: 5.208 MB / 456.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/0.4587, allocations: 0.774 MB / 457.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002969/0.459, allocations: 35.05 kB / 457.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.4592, allocations: 108.7 kB / 457.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4592, allocations: 0 / 457.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03729/0.4965, allocations: 11.8 MB / 469.4 MB, free: 4.305 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.64, allocations: 14.34 kB / 469.4 MB, free: 4.297 MB / 366.1 MB " [Timeout remaining time 647] (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] [Calling os._exit(0), Time elapsed: 15.020348336023744] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 12.78837599302642 12.808992909 12.422905139 Calling exit ...