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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 202.5 kB / 8.537 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.135/1.135, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008515/0.0008516, allocations: 94.34 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09196/0.09284, allocations: 56.91 MB / 343.2 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07748/0.1703, allocations: 51.47 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2104/0.3808, allocations: 81.71 MB / 476.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001657/0.381, allocations: 75.12 kB / 476.5 MB, free: 10.81 MB / 346.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.02011/0.4011, allocations: 7.64 MB / 484.1 MB, free: 4.926 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.4012, allocations: 8 kB / 484.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.491e-05/0.4013, allocations: 39.53 kB / 484.2 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.4019, allocations: 375.8 kB / 484.6 MB, free: 4.527 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-05/0.402, allocations: 71.89 kB / 484.6 MB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.402, allocations: 19.12 kB / 484.6 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002143/0.4022, allocations: 128.6 kB / 484.8 MB, free: 4.348 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.4025, allocations: 229.8 kB / 485 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.4025, allocations: 3.906 kB / 485 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.4026, allocations: 7.828 kB / 485 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4026, allocations: 7.984 kB / 485 MB, free: 4.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.4039, allocations: 1.298 MB / 486.3 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001007/0.404, allocations: 82.59 kB / 486.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.506e-05/0.4041, allocations: 39.95 kB / 486.4 MB, free: 2.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.4041, allocations: 3.75 kB / 486.4 MB, free: 2.824 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.314e-05/0.4041, allocations: 34.69 kB / 486.5 MB, free: 2.781 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.4041, allocations: 4 kB / 486.5 MB, free: 2.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.002094/0.4062, allocations: 0.8996 MB / 487.4 MB, free: 1.902 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.4062, allocations: 106.8 kB / 487.5 MB, free: 1.773 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.4065, allocations: 271.3 kB / 487.7 MB, free: 1.555 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.4065, allocations: 29.7 kB / 487.8 MB, free: 1.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.328e-05/0.4066, allocations: 176 kB / 487.9 MB, free: 1.359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.4066, allocations: 50.05 kB / 488 MB, free: 1.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.4067, allocations: 0 / 488 MB, free: 1.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.79e-05/0.4067, allocations: 344.1 kB / 488.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.4069, allocations: 129.9 kB / 488.4 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.4072, allocations: 214.2 kB / 488.7 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.4074, allocations: 149.9 kB / 488.8 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.4074, allocations: 0 / 488.8 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01192/0.4194, allocations: 1.294 MB / 490.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.4194, allocations: 4 kB / 490.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4194, allocations: 4 kB / 490.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01552/0.435, allocations: 1.266 MB / 491.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/0.4355, allocations: 77.42 kB / 491.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/0.4472, allocations: 4.728 MB / 496.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006767/0.4479, allocations: 39.97 kB / 496.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.994e-05/0.4479, allocations: 23.91 kB / 496.2 MB, free: 10 MB / 362.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 () * 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.0001226/0.4481, allocations: 112.9 kB / 496.3 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/0.4482, allocations: 27.62 kB / 496.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.275e-05/0.4482, allocations: 24.89 kB / 496.4 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.4482, allocations: 0 / 496.4 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.4482, allocations: 4 kB / 496.4 MB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4482, allocations: 0 / 496.4 MB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008113/0.4491, allocations: 0.6651 MB / 497.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.4491, allocations: 0 / 497.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/0.4495, allocations: 63.38 kB / 497.1 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4495, allocations: 0 / 497.1 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.4495, allocations: 7.984 kB / 497.1 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.4495, allocations: 5.594 kB / 497.1 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4495, allocations: 0 / 497.1 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005455/0.4501, allocations: 466.3 kB / 497.6 MB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000744/0.4508, allocations: 0.9436 MB / 498.5 MB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.71e-05/0.4509, allocations: 104.3 kB / 498.6 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.7e-05/0.451, allocations: 5.312 kB / 498.6 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004309/0.4514, allocations: 39.66 kB / 498.7 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.4515, allocations: 16.05 kB / 498.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.4515, allocations: 3.984 kB / 498.7 MB, free: 7.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001729/0.4517, allocations: 202.5 kB / 498.9 MB, free: 7.664 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001105/0.4528, allocations: 99.94 kB / 499 MB, free: 7.566 MB / 362.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 () * 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.0001243/0.4529, allocations: 111.4 kB / 499.1 MB, free: 7.449 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.4547, allocations: 0.6218 MB / 499.7 MB, free: 6.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4548, allocations: 0 / 499.7 MB, free: 6.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.4549, allocations: 80.34 kB / 499.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.4554, allocations: 58.58 kB / 499.9 MB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.4566, allocations: 457.6 kB / 0.4886 GB, free: 6.387 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004409/0.457, allocations: 0.8253 MB / 0.4894 GB, free: 5.539 MB / 362.7 MB Notification: Performance of SimCode: time 6.72e-07/0.457, allocations: 0 / 0.4894 GB, free: 5.539 MB / 362.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)