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.001208/0.001208, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001309/0.001309, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.367/1.367, 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+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.001531/0.001531, allocations: 51.91 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2516, allocations: 53.36 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004181/0.2557, allocations: 2.934 MB / 434.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.2574, allocations: 0.8962 MB / 435.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.2575, allocations: 8 kB / 435.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.2577, allocations: 59.38 kB / 435.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003158/0.258, allocations: 119.2 kB / 436 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.2584, allocations: 223.6 kB / 436.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005812/0.259, allocations: 0.5413 MB / 436.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.2592, allocations: 79.56 kB / 436.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.2594, allocations: 199.3 kB / 437 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003253/0.2597, allocations: 227.1 kB / 437.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.445e-05/0.2598, allocations: 48 kB / 437.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.877e-05/0.2599, allocations: 48 kB / 437.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.336e-05/0.26, allocations: 103.6 kB / 437.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.2601, allocations: 195.1 kB / 437.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005432/0.2607, allocations: 0.496 MB / 438.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2607, allocations: 0 / 438.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2607, allocations: 0 / 438.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.2607, allocations: 4 kB / 438.1 MB, free: 0.6992 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.001708/0.2624, allocations: 0.6727 MB / 438.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2625, allocations: 19.91 kB / 438.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.347e-05/0.2625, allocations: 4.688 kB / 438.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.623e-05/0.2626, allocations: 62.72 kB / 438.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.405e-05/0.2626, allocations: 48.64 kB / 438.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.2632, allocations: 269.3 kB / 439.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.2633, allocations: 123.9 kB / 439.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.466e-05/0.2634, allocations: 36.12 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.2639, allocations: 282.9 kB / 439.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.2639, allocations: 7.953 kB / 439.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.264, allocations: 8 kB / 439.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.264, allocations: 8 kB / 439.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003695/0.2643, allocations: 165.2 kB / 439.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.2673, allocations: 1.43 MB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002109/0.2675, allocations: 105.2 kB / 441.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.2676, allocations: 45.83 kB / 441.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.2676, allocations: 0 / 441.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.2677, allocations: 42.56 kB / 441.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.2677, allocations: 0 / 441.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003177/0.2709, allocations: 0.9296 MB / 442.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.565e-05/0.2709, allocations: 110.8 kB / 442.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004317/0.2714, allocations: 320.5 kB / 442.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.2714, allocations: 29.7 kB / 442.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.2716, allocations: 208.4 kB / 443 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.873e-05/0.2717, allocations: 59.52 kB / 443 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.2718, allocations: 69.66 kB / 443.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.272, allocations: 334.8 kB / 443.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.2724, allocations: 163.9 kB / 443.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004172/0.2728, allocations: 242.9 kB / 443.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006723/0.2734, allocations: 362 kB / 444.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2734, allocations: 0 / 444.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009333/0.2828, allocations: 1.306 MB / 445.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.2828, allocations: 11.98 kB / 445.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.2828, allocations: 0 / 445.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0109/0.2937, allocations: 1.153 MB / 446.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.2942, allocations: 63.88 kB / 446.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/0.3056, allocations: 5.145 MB / 451.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005812/0.3062, allocations: 31.97 kB / 451.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-05/0.3062, allocations: 16.08 kB / 451.9 MB, free: 2.211 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.0002134/0.3064, allocations: 161.6 kB / 452.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.3065, allocations: 27.81 kB / 452.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.3065, allocations: 34.61 kB / 452.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3065, allocations: 0 / 452.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3066, allocations: 3.938 kB / 452.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3066, allocations: 0 / 452.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3077, allocations: 0.7192 MB / 452.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3077, allocations: 4 kB / 452.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000352/0.3081, allocations: 51.94 kB / 452.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.571e-05/0.3081, allocations: 8.031 kB / 452.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.3081, allocations: 7.922 kB / 452.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3081, allocations: 0 / 452.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3081, allocations: 4 kB / 452.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008702/0.309, allocations: 0.5141 MB / 453.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.101e-05/0.309, allocations: 35.77 kB / 453.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.614e-05/0.3091, allocations: 4 kB / 453.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003806/0.3094, allocations: 27.97 kB / 453.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.3095, allocations: 11.97 kB / 453.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.3095, allocations: 16.05 kB / 453.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002484/0.3098, allocations: 219.1 kB / 453.7 MB, free: 304 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3098, allocations: 0 / 453.7 MB, free: 304 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005035/0.3103, allocations: 104 kB / 453.8 MB, free: 200 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.001192/0.3115, allocations: 1.054 MB / 454.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.3135, allocations: 0.7354 MB / 455.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3135, allocations: 0 / 455.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.3137, allocations: 95.88 kB / 455.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005679/0.3143, allocations: 89.31 kB / 455.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/0.3361, allocations: 5.195 MB / 461 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.3366, allocations: 0.7717 MB / 461.8 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002539/0.3368, allocations: 38.27 kB / 461.8 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002233/0.337, allocations: 107.4 kB / 461.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.337, allocations: 0 / 461.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03927/0.3763, allocations: 11.93 MB / 473.9 MB, free: 12.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.93, allocations: 4.562 kB / 473.9 MB, free: 12.13 MB / 382.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.22903754998697] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 13.096258373989258 13.111116862 12.847426503 Calling exit ...