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.001215/0.001215, allocations: 104.6 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.001215/0.001215, 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.406/1.406, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 64.66 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.09046, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004077/0.09457, allocations: 2.893 MB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.09632, allocations: 0.8845 MB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.09666, allocations: 4 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.09694, allocations: 51.44 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004839/0.09744, allocations: 127.1 kB / 361.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.09792, allocations: 215.7 kB / 361.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006257/0.09855, allocations: 0.5334 MB / 362.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.09878, allocations: 119.1 kB / 362.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002617/0.09905, allocations: 195.3 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.09937, allocations: 227.1 kB / 362.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.792e-05/0.09947, allocations: 52 kB / 362.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.198e-05/0.09957, allocations: 48 kB / 362.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.744e-05/0.09966, allocations: 95.66 kB / 363 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.09986, allocations: 203 kB / 363.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000473/0.1003, allocations: 490.7 kB / 363.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.1004, allocations: 3.984 kB / 363.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1004, allocations: 0 / 363.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.1004, allocations: 0 / 363.7 MB, free: 7.848 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.001795/0.1022, allocations: 0.7481 MB / 364.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1022, allocations: 12.03 kB / 364.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.243e-05/0.1023, allocations: 62.72 kB / 364.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.304e-05/0.1024, allocations: 40.47 kB / 364.5 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.1028, allocations: 323.5 kB / 364.9 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.1029, allocations: 80.52 kB / 364.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.689e-05/0.103, allocations: 24.38 kB / 365 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.1034, allocations: 291.7 kB / 365.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.1035, allocations: 4 kB / 365.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.1035, allocations: 11.98 kB / 365.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.1035, allocations: 8 kB / 365.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003385/0.1039, allocations: 169.2 kB / 365.4 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002769/0.1066, allocations: 1.464 MB / 366.9 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.1069, allocations: 105.2 kB / 367 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.107, allocations: 45.83 kB / 367.1 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.107, allocations: 7.984 kB / 367.1 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.107, allocations: 38.56 kB / 367.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.107, allocations: 0 / 367.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.00308/0.1101, allocations: 1.064 MB / 368.2 MB, free: 3.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.1102, allocations: 114.8 kB / 368.3 MB, free: 2.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.1106, allocations: 324.4 kB / 368.6 MB, free: 2.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.1106, allocations: 29.64 kB / 368.6 MB, free: 2.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1107, allocations: 212 kB / 368.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.452e-05/0.1108, allocations: 47.3 kB / 368.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.1109, allocations: 81.58 kB / 369 MB, free: 2.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1111, allocations: 334.8 kB / 369.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.1114, allocations: 155.9 kB / 369.4 MB, free: 1.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003811/0.1118, allocations: 239.1 kB / 369.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006213/0.1124, allocations: 350.1 kB / 370 MB, free: 1.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1125, allocations: 128 / 370 MB, free: 1.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.1558/0.2682, allocations: 1.309 MB / 371.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.2683, allocations: 14.09 kB / 371.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.2683, allocations: 5.656 kB / 371.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/0.2795, allocations: 1.159 MB / 372.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004897/0.28, allocations: 67.78 kB / 372.6 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0109/0.291, allocations: 5.337 MB / 377.9 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006156/0.2916, allocations: 36.05 kB / 377.9 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.919e-05/0.2917, allocations: 22.94 kB / 378 MB, free: 16.08 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.000214/0.2919, allocations: 157.2 kB / 378.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.755e-05/0.292, allocations: 28.8 kB / 378.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.23e-05/0.2921, allocations: 29.19 kB / 378.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2921, allocations: 6.594 kB / 378.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.2921, allocations: 0 / 378.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2921, allocations: 2.031 kB / 378.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.2932, allocations: 0.7565 MB / 378.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.2932, allocations: 1.031 kB / 378.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003916/0.2936, allocations: 49.98 kB / 379 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.2936, allocations: 1.562 kB / 379 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.2936, allocations: 5.156 kB / 379 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.2936, allocations: 1.953 kB / 379 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2937, allocations: 3.516 kB / 379 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000882/0.2945, allocations: 0.5197 MB / 379.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.508e-05/0.2946, allocations: 102 kB / 379.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.165e-05/0.2947, allocations: 2.203 kB / 379.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.2951, allocations: 31.06 kB / 379.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/0.2952, allocations: 21.02 kB / 379.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.2952, allocations: 6.828 kB / 379.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002438/0.2955, allocations: 223.9 kB / 379.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2955, allocations: 0 / 379.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006393/0.2961, allocations: 97.72 kB / 380 MB, free: 14.84 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.001109/0.2973, allocations: 1.051 MB / 381 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002159/0.2994, allocations: 0.7528 MB / 381.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.2994, allocations: 0 / 381.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002292/0.2997, allocations: 97.39 kB / 381.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005916/0.3003, allocations: 87.77 kB / 382 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02313/0.3234, allocations: 5.226 MB / 387.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.3237, allocations: 0.7752 MB / 388 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002623/0.324, allocations: 35.23 kB / 388 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.3242, allocations: 108.9 kB / 388.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3242, allocations: 0 / 388.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03984/0.3641, allocations: 11.57 MB / 399.7 MB, free: 3.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.77/16.14, allocations: 6.125 kB / 399.7 MB, free: 3.992 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)