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.00157/0.00157, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009833/0.0009833, allocations: 86.45 kB / 292.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.679e-05/3.687e-05, allocations: 4 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 51.5 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3472/0.451, allocations: 82.45 MB / 484.6 MB, free: 6.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.4513, allocations: 70.72 kB / 484.6 MB, free: 6.941 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01915/0.4704, allocations: 7.341 MB / 492 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4705, allocations: 0 / 492 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.73e-05/0.4705, allocations: 12 kB / 492 MB, free: 0.7539 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.001121/0.4716, allocations: 0.6177 MB / 492.6 MB, free: 124 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.4717, allocations: 8.031 kB / 492.6 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.145e-05/0.4718, allocations: 61.84 kB / 492.7 MB, free: 60 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.4719, allocations: 39.53 kB / 492.7 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007447/0.4726, allocations: 376.4 kB / 493.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.4728, allocations: 91 kB / 493.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-05/0.4729, allocations: 29.55 kB / 493.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.4733, allocations: 276.6 kB / 493.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.4734, allocations: 4 kB / 493.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.4734, allocations: 6.562 kB / 493.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.4734, allocations: 8 kB / 493.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.4737, allocations: 140.5 kB / 493.6 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00274/0.4764, allocations: 1.495 MB / 495.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.4766, allocations: 92.28 kB / 495.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.169e-05/0.4767, allocations: 43.83 kB / 495.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.4767, allocations: 0 / 495.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.4767, allocations: 47.31 kB / 495.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.4767, allocations: 0 / 495.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.002241/0.479, allocations: 0.9233 MB / 496.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.4791, allocations: 106.8 kB / 496.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003251/0.4794, allocations: 294.6 kB / 496.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.4794, allocations: 29.7 kB / 496.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.4796, allocations: 211.8 kB / 496.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.189e-05/0.4796, allocations: 43.3 kB / 496.9 MB, free: 12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.4797, allocations: 12 kB / 496.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.4798, allocations: 338.8 kB / 497.2 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.48, allocations: 132 kB / 497.4 MB, free: 11.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.4803, allocations: 224.7 kB / 497.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.4806, allocations: 159.9 kB / 497.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4806, allocations: 0 / 497.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009706/0.4903, allocations: 1.303 MB / 499.1 MB, free: 9.793 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4904, allocations: 8 kB / 499.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4904, allocations: 0 / 499.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01214/0.5025, allocations: 1.242 MB / 0.4886 GB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/0.5029, allocations: 71.88 kB / 0.4886 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/0.5143, allocations: 5.15 MB / 0.4937 GB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005903/0.5149, allocations: 43.88 kB / 0.4937 GB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/0.5149, allocations: 15.98 kB / 0.4937 GB, free: 2.996 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.0001369/0.5151, allocations: 132.9 kB / 0.4939 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.5152, allocations: 23.72 kB / 0.4939 GB, free: 2.836 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.612e-05/0.5153, allocations: 26.73 kB / 0.4939 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.5153, allocations: 0.8438 kB / 0.4939 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.5153, allocations: 0 / 0.4939 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.5153, allocations: 0 / 0.4939 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009289/0.5162, allocations: 0.716 MB / 0.4946 GB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.5162, allocations: 7.984 kB / 0.4946 GB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.5166, allocations: 47.95 kB / 0.4947 GB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.5166, allocations: 4 kB / 0.4947 GB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.5166, allocations: 7.984 kB / 0.4947 GB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.5166, allocations: 3.938 kB / 0.4947 GB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5166, allocations: 5.312 kB / 0.4947 GB, free: 1.961 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005775/0.5172, allocations: 483.1 kB / 0.4951 GB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.307e-05/0.5173, allocations: 108.8 kB / 0.4952 GB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.5174, allocations: 4 kB / 0.4952 GB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003596/0.5177, allocations: 28.86 kB / 0.4953 GB, free: 1.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.5178, allocations: 23.98 kB / 0.4953 GB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.5178, allocations: 7.984 kB / 0.4953 GB, free: 1.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002237/0.5181, allocations: 222.2 kB / 0.4955 GB, free: 1.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5181, allocations: 0 / 0.4955 GB, free: 1.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005086/0.5186, allocations: 108 kB / 0.4956 GB, free: 0.9648 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.0008602/0.5195, allocations: 1.083 MB / 0.4967 GB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.5211, allocations: 0.685 MB / 0.4973 GB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5212, allocations: 0 / 0.4973 GB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.5213, allocations: 87.81 kB / 0.4974 GB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004421/0.5218, allocations: 71.97 kB / 0.4975 GB, free: 14.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.523, allocations: 478.4 kB / 0.498 GB, free: 14.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.5234, allocations: 0.7797 MB / 0.4987 GB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001998/0.5236, allocations: 38.05 kB / 0.4988 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.5237, allocations: 103.4 kB / 0.4989 GB, free: 13.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5238, allocations: 0 / 0.4989 GB, free: 13.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.5495, allocations: 11.35 MB / 0.5099 GB, free: 2.465 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.5497, allocations: 189.9 kB / 0.5101 GB, free: 2.238 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/2.759, allocations: 3.938 kB / 0.5101 GB, free: 2.234 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)