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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008996/0.0008996, allocations: 96.69 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.675e-05/2.665e-05, allocations: 4 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.0951, allocations: 51.48 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.4325, allocations: 81.79 MB / 477.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.4327, allocations: 70.27 kB / 477.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01864/0.4513, allocations: 7.291 MB / 484.4 MB, free: 4.949 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4514, allocations: 0 / 484.4 MB, free: 4.949 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.068e-05/0.4514, allocations: 8 kB / 484.4 MB, free: 4.941 MB / 346.7 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.0009634/0.4524, allocations: 0.6095 MB / 485 MB, free: 4.312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.4524, allocations: 12.03 kB / 485 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.237e-05/0.4525, allocations: 47.47 kB / 485.1 MB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005606/0.4531, allocations: 371.2 kB / 485.5 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.584e-05/0.4532, allocations: 75.56 kB / 485.5 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.744e-05/0.4532, allocations: 16 kB / 485.5 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002179/0.4535, allocations: 121.8 kB / 485.7 MB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.4538, allocations: 240.1 kB / 485.9 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.4538, allocations: 3.938 kB / 485.9 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.4538, allocations: 0 / 485.9 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.4538, allocations: 9.875 kB / 485.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002318/0.4562, allocations: 1.434 MB / 487.3 MB, free: 2.188 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.4563, allocations: 83.27 kB / 487.4 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.324e-05/0.4564, allocations: 45.91 kB / 487.5 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.4564, allocations: 7.938 kB / 487.5 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.4564, allocations: 38.67 kB / 487.5 MB, free: 2.016 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.4564, allocations: 0 / 487.5 MB, free: 2.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0019/0.4583, allocations: 0.8962 MB / 488.4 MB, free: 1.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.4584, allocations: 106.8 kB / 488.5 MB, free: 1.016 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.4586, allocations: 273.3 kB / 488.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.4587, allocations: 33.64 kB / 488.8 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.489e-05/0.4588, allocations: 206.1 kB / 489 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.4588, allocations: 49.8 kB / 489.1 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.4588, allocations: 0 / 489.1 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.62e-05/0.4589, allocations: 344.5 kB / 489.4 MB, free: 224 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.4591, allocations: 122.4 kB / 489.5 MB, free: 156 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.4593, allocations: 219.3 kB / 489.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.4596, allocations: 148.5 kB / 489.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4596, allocations: 0 / 489.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009801/0.4694, allocations: 1.272 MB / 491.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.4694, allocations: 9.781 kB / 491.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.4695, allocations: 4 kB / 491.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01258/0.4821, allocations: 1.236 MB / 492.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004215/0.4825, allocations: 71.88 kB / 492.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.493, allocations: 4.883 MB / 497.4 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006068/0.4936, allocations: 32.03 kB / 497.4 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.4937, allocations: 23.34 kB / 497.4 MB, free: 9.293 MB / 362.7 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 () * 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.0001566/0.4939, allocations: 112.9 kB / 497.5 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003589/0.4942, allocations: 202.2 kB / 497.7 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.741e-05/0.4943, allocations: 25.5 kB / 497.7 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.054e-05/0.4944, allocations: 27.95 kB / 497.8 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4944, allocations: 4 kB / 497.8 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.4944, allocations: 3.312 kB / 497.8 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4944, allocations: 3.984 kB / 497.8 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008551/0.4953, allocations: 0.6555 MB / 498.4 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4953, allocations: 4 kB / 498.4 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.4956, allocations: 51.94 kB / 498.5 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.4956, allocations: 4 kB / 498.5 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.4957, allocations: 3.984 kB / 498.5 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4957, allocations: 0 / 498.5 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4957, allocations: 4 kB / 498.5 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005207/0.4962, allocations: 476 kB / 499 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.05e-05/0.4963, allocations: 107.7 kB / 499.1 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.492e-05/0.4963, allocations: 0 / 499.1 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.4967, allocations: 35.91 kB / 499.1 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.4968, allocations: 7.984 kB / 499.1 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.4968, allocations: 7.984 kB / 499.1 MB, free: 7.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001904/0.497, allocations: 207.5 kB / 499.3 MB, free: 7.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.497, allocations: 1.781 kB / 499.3 MB, free: 7.621 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005528/0.4976, allocations: 100 kB / 499.4 MB, free: 7.523 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator1.y,integrator2.y) * Number of discrete variables: 0 () * Number of discrete 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.0008657/0.4984, allocations: 1.077 MB / 0.4888 GB, free: 6.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.5002, allocations: 0.651 MB / 0.4894 GB, free: 5.965 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5002, allocations: 4.125 kB / 0.4894 GB, free: 5.961 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.5003, allocations: 76.03 kB / 0.4895 GB, free: 5.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005493/0.5009, allocations: 54.97 kB / 0.4895 GB, free: 5.871 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.5021, allocations: 457.9 kB / 0.49 GB, free: 5.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.5025, allocations: 0.7872 MB / 0.4907 GB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.5027, allocations: 39.72 kB / 0.4908 GB, free: 4.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.5029, allocations: 106.9 kB / 0.4909 GB, free: 4.547 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.5029, allocations: 0 / 0.4909 GB, free: 4.547 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03143/0.5344, allocations: 10.04 MB / 0.5007 GB, free: 10.62 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/0.5346, allocations: 145 kB / 0.5008 GB, free: 10.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/2.731, allocations: 0 / 0.5008 GB, free: 10.44 MB / 378.7 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)