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.001687/0.001687, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002201/0.002201, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 61.06 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08873/0.09007, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003986/0.09409, allocations: 2.883 MB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.09562, allocations: 0.8923 MB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.09584, allocations: 4 kB / 361.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001827/0.09606, allocations: 55.45 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003164/0.09638, allocations: 119.1 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.09677, allocations: 223.6 kB / 361.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005572/0.09734, allocations: 0.5374 MB / 362.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.09755, allocations: 115.1 kB / 362.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000232/0.0978, allocations: 199.4 kB / 362.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002942/0.0981, allocations: 223.1 kB / 362.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.665e-05/0.09819, allocations: 48 kB / 362.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.432e-05/0.09828, allocations: 48 kB / 362.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.865e-05/0.09839, allocations: 99.66 kB / 363 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.09858, allocations: 207 kB / 363.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004281/0.09902, allocations: 482.7 kB / 363.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.09903, allocations: 0 / 363.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09904, allocations: 0 / 363.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.09905, allocations: 4 kB / 363.7 MB, free: 7.867 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.001677/0.1007, allocations: 0.7598 MB / 364.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1008, allocations: 8.031 kB / 364.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.329e-05/0.1009, allocations: 58.73 kB / 364.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.624e-05/0.1009, allocations: 40.47 kB / 364.5 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.1013, allocations: 323.5 kB / 364.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.1015, allocations: 84.45 kB / 364.9 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.475e-05/0.1015, allocations: 32.38 kB / 365 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.102, allocations: 283.7 kB / 365.3 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.102, allocations: 3.938 kB / 365.3 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.102, allocations: 12 kB / 365.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1021, allocations: 8 kB / 365.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.1024, allocations: 161.3 kB / 365.4 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.1052, allocations: 1.464 MB / 366.9 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.1054, allocations: 101.2 kB / 367 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.1056, allocations: 61.8 kB / 367.1 MB, free: 4.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.1056, allocations: 4 kB / 367.1 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.1056, allocations: 30.56 kB / 367.1 MB, free: 4.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.1056, allocations: 0 / 367.1 MB, free: 4.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003213/0.1088, allocations: 1.072 MB / 368.2 MB, free: 3.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.1089, allocations: 110.7 kB / 368.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003337/0.1092, allocations: 328.3 kB / 368.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.1093, allocations: 29.7 kB / 368.6 MB, free: 2.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1094, allocations: 204 kB / 368.8 MB, free: 2.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.441e-05/0.1095, allocations: 51.3 kB / 368.9 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.1096, allocations: 69.66 kB / 368.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1097, allocations: 342.8 kB / 369.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.1101, allocations: 151.9 kB / 369.4 MB, free: 1.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.1105, allocations: 243.1 kB / 369.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006489/0.1112, allocations: 357.7 kB / 370 MB, free: 1.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1112, allocations: 128 / 370 MB, free: 1.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.1472/0.2584, allocations: 1.311 MB / 371.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.2585, allocations: 9.969 kB / 371.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.2585, allocations: 5.531 kB / 371.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01159/0.2701, allocations: 1.157 MB / 372.5 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.2706, allocations: 70.33 kB / 372.6 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.2812, allocations: 5.346 MB / 377.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006061/0.2819, allocations: 32.28 kB / 377.9 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.2819, allocations: 22.39 kB / 378 MB, free: 16.2 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.0001805/0.2821, allocations: 161.5 kB / 378.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.523e-05/0.2822, allocations: 27.2 kB / 378.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.2823, allocations: 28.47 kB / 378.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.2823, allocations: 2.594 kB / 378.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2823, allocations: 1.969 kB / 378.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2823, allocations: 0.6094 kB / 378.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.2833, allocations: 0.7518 MB / 378.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.2834, allocations: 1.469 kB / 378.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.2838, allocations: 46.08 kB / 379 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.2838, allocations: 1.125 kB / 379 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.2838, allocations: 9.234 kB / 379 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2838, allocations: 1.406 kB / 379 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2838, allocations: 1.438 kB / 379 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008608/0.2847, allocations: 0.5205 MB / 379.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.602e-05/0.2848, allocations: 103.9 kB / 379.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.25e-05/0.2848, allocations: 7.375 kB / 379.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.2853, allocations: 27.06 kB / 379.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.2854, allocations: 19.78 kB / 379.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.2854, allocations: 7.891 kB / 379.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.2857, allocations: 223.4 kB / 379.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2857, allocations: 0 / 379.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005608/0.2862, allocations: 97.81 kB / 380 MB, free: 14.95 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.0009644/0.2872, allocations: 1.055 MB / 381 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.2893, allocations: 0.7563 MB / 381.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2894, allocations: 0 / 381.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.2896, allocations: 97.97 kB / 381.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005931/0.2902, allocations: 84.8 kB / 382 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0226/0.3128, allocations: 5.234 MB / 387.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.3131, allocations: 0.7781 MB / 388 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002857/0.3134, allocations: 29.36 kB / 388 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.3136, allocations: 105 kB / 388.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3136, allocations: 0 / 388.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.3455, allocations: 11.56 MB / 399.7 MB, free: 4.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.94, allocations: 10.06 kB / 399.7 MB, free: 4.098 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-07 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)