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.001099/0.0011, allocations: 95.28 kB / 16.98 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002468, allocations: 4 kB / 306.7 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1204, allocations: 51.49 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003273/0.1237, allocations: 2.35 MB / 360.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.1257, allocations: 0.8811 MB / 361.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003409/0.1261, allocations: 4 kB / 361.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.1262, allocations: 35.69 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006048/0.1268, allocations: 123.6 kB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004891/0.1273, allocations: 147.7 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007636/0.1281, allocations: 331.3 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003265/0.1284, allocations: 90.72 kB / 362.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004394/0.1289, allocations: 159.5 kB / 362.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004428/0.1294, allocations: 187.3 kB / 362.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.293e-05/0.1295, allocations: 20 kB / 362.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.145e-05/0.1296, allocations: 20 kB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.5e-05/0.1296, allocations: 67.72 kB / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.1298, allocations: 93.52 kB / 362.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.1302, allocations: 363.2 kB / 363 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1302, allocations: 0 / 363 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.661e-06/0.1302, allocations: 0 / 363 MB, free: 9.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.1303, allocations: 7.938 kB / 363 MB, free: 9.125 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.001945/0.1322, allocations: 0.6864 MB / 363.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.1323, allocations: 12.03 kB / 363.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001522/0.1324, allocations: 58.55 kB / 363.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.1326, allocations: 35.62 kB / 363.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006913/0.1333, allocations: 318.3 kB / 364.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.1335, allocations: 87.91 kB / 364.2 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.897e-05/0.1336, allocations: 24 kB / 364.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005454/0.1342, allocations: 291.7 kB / 364.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.1342, allocations: 0 / 364.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.1342, allocations: 12 kB / 364.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.1342, allocations: 8 kB / 364.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003654/0.1346, allocations: 173.2 kB / 364.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003062/0.1377, allocations: 1.48 MB / 366.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.1379, allocations: 105.2 kB / 366.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.138, allocations: 11.97 kB / 366.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/0.138, allocations: 34.69 kB / 366.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.138, allocations: 7.938 kB / 366.4 MB, free: 5.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003377/0.1414, allocations: 1.118 MB / 367.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/0.1415, allocations: 110.8 kB / 367.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000412/0.1419, allocations: 316.4 kB / 367.9 MB, free: 3.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.273e-05/0.142, allocations: 33.7 kB / 367.9 MB, free: 3.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.1422, allocations: 212.1 kB / 368.1 MB, free: 3.633 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.1423, allocations: 43.36 kB / 368.2 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.1423, allocations: 4 kB / 368.2 MB, free: 3.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1425, allocations: 346.7 kB / 368.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.1429, allocations: 163.9 kB / 368.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.1433, allocations: 251.1 kB / 368.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.1437, allocations: 183.9 kB / 369.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1437, allocations: 0 / 369.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009295/0.153, allocations: 1.349 MB / 370.5 MB, free: 1.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.1531, allocations: 4 kB / 370.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.1531, allocations: 4 kB / 370.5 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01096/0.1641, allocations: 1.176 MB / 371.6 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2222/0.3864, allocations: 74.77 kB / 371.7 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/0.398, allocations: 5.076 MB / 376.8 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006359/0.3986, allocations: 36.05 kB / 376.8 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/0.3987, allocations: 20.12 kB / 376.8 MB, free: 16.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 1,4 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002209/0.3989, allocations: 149.9 kB / 377 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.399, allocations: 32.7 kB / 377 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.3991, allocations: 24.86 kB / 377 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3991, allocations: 3.594 kB / 377.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.3991, allocations: 1.156 kB / 377.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3991, allocations: 5.641 kB / 377.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.4003, allocations: 0.7672 MB / 377.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.4003, allocations: 4.562 kB / 377.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.4007, allocations: 53.66 kB / 377.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.503e-06/0.4007, allocations: 1.969 kB / 377.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.4008, allocations: 5.484 kB / 377.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.4008, allocations: 0.7031 kB / 377.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.4008, allocations: 1.656 kB / 377.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008236/0.4016, allocations: 0.5585 MB / 378.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.739e-05/0.4017, allocations: 101.8 kB / 378.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.4018, allocations: 1.375 kB / 378.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003961/0.4022, allocations: 36.91 kB / 378.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/0.4022, allocations: 17.7 kB / 378.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.4023, allocations: 7.453 kB / 378.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.4025, allocations: 222 kB / 378.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4025, allocations: 3.906 kB / 378.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007133/0.4033, allocations: 98.75 kB / 378.9 MB, free: 14.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001129/0.4044, allocations: 1.16 MB / 380.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002218/0.4066, allocations: 0.746 MB / 380.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4067, allocations: 0 / 380.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.407, allocations: 105.6 kB / 380.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.4075, allocations: 67.36 kB / 381 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.4096, allocations: 2.681 MB / 383.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.41, allocations: 0.7839 MB / 384.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000236/0.4102, allocations: 30.52 kB / 384.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.4104, allocations: 110.8 kB / 384.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of SimCode: time 1.573e-06/0.4104, allocations: 0 / 384.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.4457, allocations: 10.76 MB / 395.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/0.446, allocations: 220 kB / 395.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.383/2.829, allocations: 0 / 395.6 MB, free: 6.41 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/linux/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)