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.001903/0.001903, allocations: 117 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0021/0.0021, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.4 MB, free: 10.83 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 68.23 kB / 306.6 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1147, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005148/0.1199, allocations: 2.927 MB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.122, allocations: 0.8923 MB / 360.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00035/0.1224, allocations: 4 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002337/0.1227, allocations: 31.7 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004296/0.1232, allocations: 107.3 kB / 361.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.1236, allocations: 199.8 kB / 361.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007874/0.1244, allocations: 0.5334 MB / 361.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.1247, allocations: 119.1 kB / 361.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003249/0.1251, allocations: 195.3 kB / 362.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.1255, allocations: 231.1 kB / 362.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.1256, allocations: 44 kB / 362.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.875e-05/0.1257, allocations: 48 kB / 362.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.1258, allocations: 103.6 kB / 362.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002364/0.1261, allocations: 199 kB / 362.7 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006871/0.1268, allocations: 494.7 kB / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1268, allocations: 0 / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1268, allocations: 0 / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.1268, allocations: 0 / 363.2 MB, free: 8.215 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.002209/0.129, allocations: 0.7559 MB / 363.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.1291, allocations: 12.03 kB / 363.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.088e-05/0.1292, allocations: 54.73 kB / 364 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.1293, allocations: 40.47 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004943/0.1298, allocations: 327.5 kB / 364.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.1299, allocations: 76.53 kB / 364.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.064e-05/0.13, allocations: 32.31 kB / 364.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.1306, allocations: 287.7 kB / 364.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.1306, allocations: 3.938 kB / 364.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.1306, allocations: 12 kB / 364.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/0.1307, allocations: 8 kB / 364.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003835/0.1311, allocations: 161.3 kB / 364.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00334/0.1344, allocations: 1.468 MB / 366.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.1346, allocations: 101.2 kB / 366.5 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.1348, allocations: 49.81 kB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.1348, allocations: 4 kB / 366.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.1348, allocations: 38.56 kB / 366.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.1349, allocations: 0 / 366.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003467/0.1383, allocations: 1.059 MB / 367.6 MB, free: 3.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.1384, allocations: 122.7 kB / 367.8 MB, free: 3.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/0.1388, allocations: 328.3 kB / 368.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/0.1389, allocations: 29.64 kB / 368.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.139, allocations: 208 kB / 368.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.945e-05/0.1391, allocations: 47.28 kB / 368.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.1393, allocations: 77.66 kB / 368.4 MB, free: 2.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1394, allocations: 334.8 kB / 368.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.1398, allocations: 156.8 kB / 368.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004239/0.1402, allocations: 247.1 kB / 369.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007254/0.141, allocations: 349.9 kB / 369.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.141, allocations: 4 kB / 369.5 MB, free: 1.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01056/0.1515, allocations: 1.322 MB / 370.8 MB, free: 64 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.1516, allocations: 4 kB / 370.8 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.1516, allocations: 4 kB / 370.8 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2301/0.3818, allocations: 1.148 MB / 372 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000548/0.3824, allocations: 65.12 kB / 372 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.3942, allocations: 5.344 MB / 377.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006475/0.3949, allocations: 34.02 kB / 377.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/0.3949, allocations: 23.72 kB / 377.4 MB, free: 16.28 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.0001967/0.3951, allocations: 155.5 kB / 377.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.3952, allocations: 28.89 kB / 377.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.3953, allocations: 25.06 kB / 377.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.3953, allocations: 1.375 kB / 377.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3953, allocations: 1.984 kB / 377.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3953, allocations: 0.7969 kB / 377.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.3965, allocations: 0.7547 MB / 378.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.3965, allocations: 1.75 kB / 378.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000414/0.3969, allocations: 49.94 kB / 378.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3969, allocations: 1.531 kB / 378.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.3969, allocations: 5.328 kB / 378.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3969, allocations: 5.406 kB / 378.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.397, allocations: 2.188 kB / 378.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008294/0.3978, allocations: 0.5148 MB / 379 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.656e-05/0.3979, allocations: 107 kB / 379.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.316e-05/0.3979, allocations: 3.125 kB / 379.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004489/0.3984, allocations: 27.03 kB / 379.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.689e-05/0.3985, allocations: 24.83 kB / 379.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.3985, allocations: 9.641 kB / 379.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000268/0.3988, allocations: 223 kB / 379.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3988, allocations: 0 / 379.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000606/0.3994, allocations: 102.8 kB / 379.5 MB, free: 15.03 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.001059/0.4005, allocations: 1.053 MB / 380.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.4027, allocations: 0.7613 MB / 381.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.4027, allocations: 0.9375 kB / 381.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.403, allocations: 89.67 kB / 381.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006402/0.4037, allocations: 68.34 kB / 381.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02498/0.4287, allocations: 5.364 MB / 386.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.429, allocations: 0.7753 MB / 387.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003026/0.4293, allocations: 29.3 kB / 387.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.4295, allocations: 113.1 kB / 387.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4295, allocations: 4 kB / 387.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02899/0.4585, allocations: 11.48 MB / 399.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/0.4587, allocations: 238.8 kB / 399.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/2.938, allocations: 3.938 kB / 399.4 MB, free: 4.367 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)