Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.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.Lines.CompareLosslessLines,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.164/1.164, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000737/0.000737, allocations: 99.94 kB / 296.7 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002508/0.0002509, allocations: 8 kB / 356.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2028, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.002401/0.2053, allocations: 3.082 MB / 411.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000997/0.2063, allocations: 0.8565 MB / 412.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.2065, allocations: 8 kB / 412.1 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.2066, allocations: 59.53 kB / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.2069, allocations: 118.1 kB / 412.3 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002756/0.2072, allocations: 149.8 kB / 412.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.2075, allocations: 0.5607 MB / 413 MB, free: 22.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.2078, allocations: 196.3 kB / 413.2 MB, free: 22.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.2079, allocations: 199.3 kB / 413.4 MB, free: 22.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001922/0.2081, allocations: 243 kB / 413.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.659e-05/0.2082, allocations: 32 kB / 413.6 MB, free: 22.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.401e-05/0.2083, allocations: 32 kB / 413.7 MB, free: 22.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.341e-05/0.2083, allocations: 95.58 kB / 413.7 MB, free: 22.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.2085, allocations: 256.6 kB / 414 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002566/0.2088, allocations: 459.9 kB / 414.4 MB, free: 21.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2088, allocations: 0 / 414.4 MB, free: 21.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2088, allocations: 4 kB / 414.5 MB, free: 21.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.2088, allocations: 0 / 414.5 MB, free: 21.39 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.00108/0.2099, allocations: 0.7697 MB / 415.2 MB, free: 20.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2099, allocations: 8.031 kB / 415.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.812e-05/0.21, allocations: 90.7 kB / 415.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.339e-05/0.2101, allocations: 52.38 kB / 415.4 MB, free: 20.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.2104, allocations: 334.4 kB / 415.7 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.2104, allocations: 37.38 kB / 415.7 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.787e-05/0.2105, allocations: 52.12 kB / 415.8 MB, free: 19.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006935/0.2112, allocations: 0.514 MB / 416.3 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.2112, allocations: 0 / 416.3 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.2112, allocations: 23.94 kB / 416.3 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.2113, allocations: 12 kB / 416.3 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005472/0.2118, allocations: 319.8 kB / 416.6 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.2135, allocations: 1.573 MB / 418.2 MB, free: 17.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004309/0.214, allocations: 224.4 kB / 418.4 MB, free: 17.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.2142, allocations: 108.8 kB / 418.5 MB, free: 17.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.2142, allocations: 0 / 418.5 MB, free: 17.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003379/0.2146, allocations: 221.7 kB / 418.8 MB, free: 16.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.974e-06/0.2146, allocations: 3.984 kB / 418.8 MB, free: 16.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.00124/0.2158, allocations: 0.7931 MB / 419.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.173e-05/0.2159, allocations: 316.4 kB / 419.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/0.2162, allocations: 310.9 kB / 420.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.2162, allocations: 33.7 kB / 420.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.2163, allocations: 267.4 kB / 420.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.462e-05/0.2164, allocations: 94.64 kB / 420.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.2164, allocations: 4 kB / 420.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.753e-05/0.2164, allocations: 342.8 kB / 420.9 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.2167, allocations: 100.7 kB / 421 MB, free: 14.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.2169, allocations: 274 kB / 421.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004149/0.2173, allocations: 343.6 kB / 421.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2174, allocations: 4 kB / 421.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008851/0.2182, allocations: 0.5374 MB / 422.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.2183, allocations: 37.69 kB / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2183, allocations: 0 / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005263/0.2188, allocations: 174.4 kB / 422.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.219, allocations: 59.84 kB / 422.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/0.2216, allocations: 4.529 MB / 426.9 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.222, allocations: 63.52 kB / 427 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.222, allocations: 24.05 kB / 427 MB, free: 7.793 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.2222, allocations: 161.7 kB / 427.2 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.2222, allocations: 31.62 kB / 427.2 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.987e-05/0.2223, allocations: 38.98 kB / 427.2 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2223, allocations: 4 kB / 427.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-06/0.2223, allocations: 0 / 427.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2223, allocations: 0 / 427.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000298/0.2226, allocations: 433.1 kB / 427.7 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2226, allocations: 4.188 kB / 427.7 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.2228, allocations: 35.98 kB / 427.7 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002429/0.223, allocations: 107.3 kB / 427.8 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.223, allocations: 7.984 kB / 427.8 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002249/0.2253, allocations: 5.289 MB / 433.1 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2253, allocations: 0 / 433.1 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005955/0.2259, allocations: 376.8 kB / 433.5 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.226, allocations: 108.7 kB / 433.6 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.226, allocations: 7.984 kB / 433.6 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.2263, allocations: 31.98 kB / 433.6 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.31e-05/0.2264, allocations: 43.88 kB / 433.7 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.2264, allocations: 8 kB / 433.7 MB, free: 492 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001615/0.2266, allocations: 217.9 kB / 433.9 MB, free: 276 kB / 298.7 MB Notification: Performance of sort global known variables: time 3e-07/0.2266, allocations: 0 / 433.9 MB, free: 276 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004427/0.227, allocations: 143.7 kB / 434 MB, free: 132 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009494/0.228, allocations: 0.9163 MB / 434.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.229, allocations: 0.7292 MB / 435.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.229, allocations: 0.75 kB / 435.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000618/0.2297, allocations: 0.5806 MB / 436.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.23, allocations: 75.86 kB / 436.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.233, allocations: 2.15 MB / 438.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.2333, allocations: 0.8232 MB / 439.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.2335, allocations: 143.4 kB / 439.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2335, allocations: 0 / 439.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.861/4.095, allocations: 11.52 MB / 451 MB, free: 14.89 MB / 330.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines_fmu --startTime=0 --stopTime=2e-08 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1)