Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00128/0.00128, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 67.59 kB / 306.4 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.0907, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003811/0.09455, allocations: 2.931 MB / 359.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.09604, allocations: 0.8768 MB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.09627, allocations: 4 kB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.09647, allocations: 39.64 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.09678, allocations: 107.3 kB / 360.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.09712, allocations: 195.8 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004528/0.09758, allocations: 0.5022 MB / 361.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.09778, allocations: 104.8 kB / 361.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.09797, allocations: 167.3 kB / 361.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.09823, allocations: 207.1 kB / 362 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.187e-05/0.0983, allocations: 28 kB / 362 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.305e-05/0.09837, allocations: 24 kB / 362.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/0.09845, allocations: 79.59 kB / 362.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.09862, allocations: 183.1 kB / 362.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003975/0.09903, allocations: 470.6 kB / 362.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.09904, allocations: 0 / 362.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.09905, allocations: 0 / 362.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.09906, allocations: 0 / 362.8 MB, free: 8.301 MB / 302.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.001682/0.1007, allocations: 0.7465 MB / 363.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1008, allocations: 8.031 kB / 363.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.379e-05/0.1009, allocations: 62.72 kB / 363.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.571e-05/0.101, allocations: 40.47 kB / 363.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.1014, allocations: 327.4 kB / 363.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.1015, allocations: 88.5 kB / 364 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.1015, allocations: 28.38 kB / 364.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/0.102, allocations: 283.7 kB / 364.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.102, allocations: 0 / 364.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.1021, allocations: 12 kB / 364.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.1021, allocations: 4 kB / 364.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003396/0.1024, allocations: 170 kB / 364.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00277/0.1052, allocations: 1.472 MB / 366 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.1054, allocations: 105.1 kB / 366.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.1055, allocations: 49.83 kB / 366.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.1055, allocations: 0 / 366.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1056, allocations: 42.5 kB / 366.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.1056, allocations: 0 / 366.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003127/0.1087, allocations: 1.059 MB / 367.2 MB, free: 3.477 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.1088, allocations: 110.8 kB / 367.4 MB, free: 3.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.1091, allocations: 324.4 kB / 367.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.494e-05/0.1092, allocations: 33.7 kB / 367.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.1093, allocations: 208 kB / 367.9 MB, free: 2.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.111e-05/0.1093, allocations: 47.3 kB / 367.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.1095, allocations: 73.64 kB / 368 MB, free: 2.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1096, allocations: 342.8 kB / 368.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003533/0.11, allocations: 152.9 kB / 368.5 MB, free: 2.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003845/0.1104, allocations: 251.9 kB / 368.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.111, allocations: 357.5 kB / 369.1 MB, free: 1.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.111, allocations: 0 / 369.1 MB, free: 1.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01032/0.1213, allocations: 1.31 MB / 370.4 MB, free: 164 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1214, allocations: 12.06 kB / 370.4 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.1214, allocations: 0 / 370.4 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1561/0.2774, allocations: 1.15 MB / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/0.278, allocations: 69.44 kB / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/0.2887, allocations: 4.928 MB / 376.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005755/0.2893, allocations: 38.16 kB / 376.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.028e-05/0.2894, allocations: 15.91 kB / 376.6 MB, free: 16.36 MB / 302.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.0001772/0.2896, allocations: 158.7 kB / 376.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.675e-05/0.2897, allocations: 27.91 kB / 376.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/0.2897, allocations: 29.16 kB / 376.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2897, allocations: 5.312 kB / 376.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.2897, allocations: 1.375 kB / 376.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2897, allocations: 2.766 kB / 376.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009922/0.2907, allocations: 0.7481 MB / 377.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2907, allocations: 3.938 kB / 377.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.2911, allocations: 46.62 kB / 377.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2911, allocations: 1.188 kB / 377.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.2912, allocations: 5.359 kB / 377.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2912, allocations: 9.219 kB / 377.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.2912, allocations: 1.672 kB / 377.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007521/0.2919, allocations: 0.512 MB / 378.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.292, allocations: 113.3 kB / 378.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.85e-05/0.2921, allocations: 1.281 kB / 378.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004267/0.2925, allocations: 27.52 kB / 378.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.401e-05/0.2926, allocations: 12.73 kB / 378.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-05/0.2926, allocations: 10.05 kB / 378.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.2928, allocations: 224.4 kB / 378.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2928, allocations: 0 / 378.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.2934, allocations: 102 kB / 378.6 MB, free: 15.11 MB / 302.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.0009572/0.2943, allocations: 1.058 MB / 379.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.2963, allocations: 0.7308 MB / 380.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2963, allocations: 0 / 380.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.2966, allocations: 97.98 kB / 380.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005888/0.2972, allocations: 70.09 kB / 380.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02314/0.3203, allocations: 5.361 MB / 386 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/0.3206, allocations: 0.7736 MB / 386.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002374/0.3208, allocations: 27.81 kB / 386.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.321, allocations: 104 kB / 386.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.321, allocations: 4 kB / 386.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.3454, allocations: 11.12 MB / 398 MB, free: 5.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/0.3456, allocations: 236.8 kB / 398.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.525, allocations: 7.938 kB / 398.2 MB, free: 5.242 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)