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.001022/0.001022, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 227.2 MB / 245 MB, free: 7.656 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00082/0.0008197, allocations: 96.45 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002091/0.0002089, allocations: 7.984 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.206, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09511/0.3012, allocations: 82.52 MB / 492 MB, free: 8.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/0.3014, allocations: 71.97 kB / 492.1 MB, free: 8.008 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0208/0.3222, allocations: 7.345 MB / 499.4 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3223, allocations: 0 / 499.4 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.3223, allocations: 8 kB / 499.4 MB, free: 0.625 MB / 362.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.001263/0.3236, allocations: 0.6741 MB / 0.4884 GB, free: 15.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.3236, allocations: 8.031 kB / 0.4884 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.316e-05/0.3237, allocations: 62.53 kB / 0.4885 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.994e-05/0.3238, allocations: 43.52 kB / 0.4885 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.3244, allocations: 370.5 kB / 0.4889 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.3245, allocations: 87.89 kB / 0.4889 GB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.252e-05/0.3246, allocations: 24 kB / 0.489 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.325, allocations: 292.7 kB / 0.4892 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.325, allocations: 3.938 kB / 0.4893 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.3251, allocations: 12 kB / 0.4893 GB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3251, allocations: 4 kB / 0.4893 GB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.3254, allocations: 169.2 kB / 0.4894 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.3282, allocations: 1.5 MB / 0.4909 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.3284, allocations: 113.2 kB / 0.491 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.3284, allocations: 0 / 0.491 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.3284, allocations: 34.56 kB / 0.491 GB, free: 13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.3284, allocations: 0 / 0.491 GB, free: 13 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.002808/0.3312, allocations: 1.114 MB / 0.4921 GB, free: 11.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.3313, allocations: 110.8 kB / 0.4922 GB, free: 11.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.3316, allocations: 299.5 kB / 0.4925 GB, free: 11.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.3317, allocations: 25.7 kB / 0.4925 GB, free: 11.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.3318, allocations: 208.1 kB / 0.4927 GB, free: 11.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.3319, allocations: 43.36 kB / 0.4928 GB, free: 11.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.3319, allocations: 8 kB / 0.4928 GB, free: 11.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.332, allocations: 338.8 kB / 0.4931 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003299/0.3324, allocations: 163.8 kB / 0.4933 GB, free: 10.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000375/0.3327, allocations: 251.7 kB / 0.4935 GB, free: 10.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.3331, allocations: 187.9 kB / 0.4937 GB, free: 10.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3331, allocations: 4 kB / 0.4937 GB, free: 10.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01117/0.3443, allocations: 1.365 MB / 0.495 GB, free: 8.723 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.3443, allocations: 4 kB / 0.495 GB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3444, allocations: 7.938 kB / 0.495 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01387/0.3582, allocations: 1.247 MB / 0.4962 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.3587, allocations: 71.86 kB / 0.4963 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.3707, allocations: 5.34 MB / 0.5015 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005565/0.3712, allocations: 47.91 kB / 0.5016 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.3713, allocations: 15.98 kB / 0.5016 GB, free: 1.711 MB / 378.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 () * 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.0001914/0.3715, allocations: 156.1 kB / 0.5017 GB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-05/0.3716, allocations: 31.62 kB / 0.5018 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.3716, allocations: 26.61 kB / 0.5018 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.3716, allocations: 4 kB / 0.5018 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.3716, allocations: 0 / 0.5018 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.3716, allocations: 4 kB / 0.5018 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3726, allocations: 0.7591 MB / 0.5025 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3727, allocations: 0 / 0.5025 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.373, allocations: 55.88 kB / 0.5026 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.373, allocations: 0 / 0.5026 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.3731, allocations: 7.984 kB / 0.5026 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3731, allocations: 4 kB / 0.5026 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3731, allocations: 96 / 0.5026 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000761/0.3738, allocations: 0.5507 MB / 0.5031 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1503/0.5241, allocations: 103.8 kB / 0.5032 GB, free: 95.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.267e-05/0.5242, allocations: 4.281 kB / 0.5033 GB, free: 95.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.5248, allocations: 33.47 kB / 0.5033 GB, free: 95.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.5249, allocations: 15.88 kB / 0.5033 GB, free: 95.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.5249, allocations: 9.344 kB / 0.5033 GB, free: 95.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003191/0.5252, allocations: 221 kB / 0.5035 GB, free: 95.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5253, allocations: 3.188 kB / 0.5035 GB, free: 95.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007185/0.526, allocations: 111.3 kB / 0.5036 GB, free: 95.16 MB / 378.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 () * 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.00105/0.527, allocations: 1.164 MB / 0.5048 GB, free: 94.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.5291, allocations: 0.7489 MB / 0.5055 GB, free: 94.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5291, allocations: 0 / 0.5055 GB, free: 94.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.5293, allocations: 107.6 kB / 0.5056 GB, free: 94.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.5298, allocations: 61.3 kB / 0.5057 GB, free: 94.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.5314, allocations: 2.683 MB / 0.5083 GB, free: 91.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001884/0.5316, allocations: 0.7888 MB / 0.509 GB, free: 91.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.5317, allocations: 32.88 kB / 0.5091 GB, free: 91.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.5319, allocations: 108.9 kB / 0.5092 GB, free: 91.07 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5319, allocations: 0 / 0.5092 GB, free: 91.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.5547, allocations: 11.3 MB / 0.5202 GB, free: 88.08 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/0.5548, allocations: 216.1 kB / 0.5204 GB, free: 87.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.133/2.688, allocations: 0 / 0.5204 GB, free: 87.84 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)