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.001238/0.001237, allocations: 100 kB / 17 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.001766/0.001766, allocations: 193 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.0002703, allocations: 8 kB / 306.8 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1361, allocations: 51.5 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003786/0.14, allocations: 2.451 MB / 360.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.1421, allocations: 0.8653 MB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.1423, allocations: 4 kB / 361.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.1426, allocations: 43.64 kB / 361.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003309/0.1429, allocations: 91.36 kB / 361.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000356/0.1433, allocations: 147.8 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00051/0.1438, allocations: 474.3 kB / 362.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.144, allocations: 90.72 kB / 362.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.1442, allocations: 163.4 kB / 362.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.1444, allocations: 191.1 kB / 362.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.84e-05/0.1445, allocations: 20 kB / 362.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.198e-05/0.1446, allocations: 20 kB / 362.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.733e-05/0.1446, allocations: 71.73 kB / 362.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.802e-05/0.1447, allocations: 85.52 kB / 363 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.1451, allocations: 363.3 kB / 363.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1451, allocations: 0 / 363.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1451, allocations: 0 / 363.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1451, allocations: 0 / 363.4 MB, free: 8.707 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.001513/0.1466, allocations: 0.6935 MB / 364 MB, free: 7.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1467, allocations: 12.03 kB / 364.1 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.387e-05/0.1467, allocations: 62.48 kB / 364.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.877e-05/0.1468, allocations: 35.62 kB / 364.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004235/0.1473, allocations: 318.3 kB / 364.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.1474, allocations: 87.97 kB / 364.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.398e-05/0.1475, allocations: 31.94 kB / 364.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004753/0.1479, allocations: 279.8 kB / 364.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.148, allocations: 0 / 364.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.148, allocations: 16 kB / 364.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.148, allocations: 8 kB / 364.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003488/0.1484, allocations: 173.2 kB / 365 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002787/0.1512, allocations: 1.488 MB / 366.5 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002372/0.1514, allocations: 105.2 kB / 366.6 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.1515, allocations: 53.81 kB / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.1516, allocations: 4 kB / 366.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.1516, allocations: 34.56 kB / 366.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.1516, allocations: 0 / 366.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003063/0.1547, allocations: 1.126 MB / 367.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.1548, allocations: 118.8 kB / 368 MB, free: 3.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.1551, allocations: 316.4 kB / 368.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.1552, allocations: 33.7 kB / 368.3 MB, free: 3.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1553, allocations: 208 kB / 368.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.1554, allocations: 47.36 kB / 368.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.1554, allocations: 4 kB / 368.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1556, allocations: 342.8 kB / 368.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003546/0.1559, allocations: 167.8 kB / 369.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003885/0.1563, allocations: 255.1 kB / 369.3 MB, free: 2.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.1567, allocations: 179.9 kB / 369.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1567, allocations: 0 / 369.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008891/0.1656, allocations: 1.349 MB / 370.8 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.1657, allocations: 4 kB / 370.8 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1657, allocations: 4 kB / 370.8 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2242/0.3899, allocations: 1.171 MB / 372 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005934/0.3905, allocations: 70.03 kB / 372.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/0.4026, allocations: 4.925 MB / 377 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006401/0.4033, allocations: 41.12 kB / 377.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.233e-05/0.4033, allocations: 24.11 kB / 377.1 MB, free: 16.04 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.0002164/0.4035, allocations: 150.3 kB / 377.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.323e-05/0.4036, allocations: 26.03 kB / 377.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.609e-05/0.4037, allocations: 33.44 kB / 377.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.4037, allocations: 1.281 kB / 377.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.4037, allocations: 1.125 kB / 377.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.4037, allocations: 2.312 kB / 377.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.4049, allocations: 0.7716 MB / 378.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-06/0.4049, allocations: 0.6094 kB / 378.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.4053, allocations: 49.52 kB / 378.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.4053, allocations: 1.375 kB / 378.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.4053, allocations: 10.78 kB / 378.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4053, allocations: 0.75 kB / 378.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4053, allocations: 5.328 kB / 378.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008359/0.4062, allocations: 0.5362 MB / 378.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.721e-05/0.4063, allocations: 110.1 kB / 378.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.4063, allocations: 1.953 kB / 378.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003794/0.4067, allocations: 35.59 kB / 378.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.4068, allocations: 16.25 kB / 378.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.4068, allocations: 7.859 kB / 378.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002574/0.4071, allocations: 224.9 kB / 379 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4071, allocations: 0 / 379 MB, free: 14.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006772/0.4078, allocations: 102.7 kB / 379.1 MB, free: 14.81 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.001038/0.4088, allocations: 1.08 MB / 380.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002194/0.411, allocations: 0.7389 MB / 381 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.4111, allocations: 1.906 kB / 381 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002964/0.4114, allocations: 108.4 kB / 381.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000721/0.4121, allocations: 71.28 kB / 381.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/0.4247, allocations: 2.941 MB / 384.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.4251, allocations: 0.7743 MB / 384.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003086/0.4255, allocations: 31.5 kB / 384.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.4257, allocations: 108.6 kB / 385 MB, free: 11.46 MB / 302.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4257, allocations: 0 / 385 MB, free: 11.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02877/0.4545, allocations: 10.89 MB / 395.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001369/0.4547, allocations: 226.6 kB / 396.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.435/2.89, allocations: 0 / 396.1 MB, free: 6.988 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)