Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.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.Lines.CompareLosslessLines,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001145/0.001145, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001508/0.001508, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 58.72 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1149, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.004904/0.1198, allocations: 3.594 MB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.1216, allocations: 0.8998 MB / 362.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003415/0.122, allocations: 12 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.1223, allocations: 75.22 kB / 362.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004949/0.1228, allocations: 146.7 kB / 362.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.1233, allocations: 203.6 kB / 362.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007209/0.1241, allocations: 0.6077 MB / 363.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003533/0.1244, allocations: 225 kB / 363.3 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.1248, allocations: 235.3 kB / 363.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004461/0.1252, allocations: 294.7 kB / 363.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.1253, allocations: 56 kB / 363.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.1255, allocations: 60 kB / 364 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1256, allocations: 127.6 kB / 364.1 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002924/0.1259, allocations: 274.7 kB / 364.4 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005636/0.1265, allocations: 0.6073 MB / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1265, allocations: 0 / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1265, allocations: 0 / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.123e-05/0.1265, allocations: 4 kB / 365 MB, free: 6.574 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001661/0.1282, allocations: 0.8515 MB / 365.8 MB, free: 5.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1282, allocations: 12.03 kB / 365.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.1283, allocations: 90.64 kB / 365.9 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.1285, allocations: 52.38 kB / 366 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.1289, allocations: 330.5 kB / 366.3 MB, free: 5.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.129, allocations: 37.38 kB / 366.3 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.686e-05/0.129, allocations: 52.12 kB / 366.4 MB, free: 5.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008862/0.1299, allocations: 0.5179 MB / 366.9 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.13, allocations: 0 / 366.9 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.13, allocations: 20 kB / 366.9 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.13, allocations: 16 kB / 366.9 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006889/0.1307, allocations: 315.8 kB / 367.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002372/0.1331, allocations: 1.565 MB / 368.8 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.1337, allocations: 210.5 kB / 369 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/0.1339, allocations: 101.9 kB / 369.1 MB, free: 2.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.134, allocations: 4 kB / 369.1 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.1344, allocations: 217.6 kB / 369.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.993e-06/0.1344, allocations: 0 / 369.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.0016/0.136, allocations: 0.772 MB / 370.1 MB, free: 1.062 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.1362, allocations: 320.4 kB / 370.4 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/0.1366, allocations: 299 kB / 370.7 MB, free: 384 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.1366, allocations: 37.7 kB / 370.8 MB, free: 340 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.1368, allocations: 267.4 kB / 371 MB, free: 68 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1627/0.2995, allocations: 95.73 kB / 371.1 MB, free: 20.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.2998, allocations: 76.45 kB / 371.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.523e-05/0.2998, allocations: 340.4 kB / 371.5 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.3002, allocations: 97.3 kB / 371.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.3005, allocations: 259.4 kB / 371.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005295/0.3011, allocations: 335.5 kB / 372.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3011, allocations: 1.25 kB / 372.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001197/0.3023, allocations: 0.537 MB / 372.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/0.3023, allocations: 33.16 kB / 372.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3023, allocations: 3.922 kB / 372.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006614/0.303, allocations: 166.6 kB / 372.9 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.3032, allocations: 51.55 kB / 373 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00324/0.3065, allocations: 4.937 MB / 377.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.3069, allocations: 63.47 kB / 378 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.307, allocations: 19.52 kB / 378 MB, free: 15.1 MB / 302.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000205/0.3072, allocations: 166.6 kB / 378.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.242e-05/0.3072, allocations: 35.25 kB / 378.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.91e-05/0.3073, allocations: 38.02 kB / 378.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3073, allocations: 7.875 kB / 378.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.3073, allocations: 6.828 kB / 378.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.3074, allocations: 1.406 kB / 378.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004019/0.3078, allocations: 427 kB / 378.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3078, allocations: 0 / 378.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.308, allocations: 32.45 kB / 378.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002734/0.3082, allocations: 109.5 kB / 378.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.3083, allocations: 8.391 kB / 378.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002532/0.3108, allocations: 5.764 MB / 384.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3108, allocations: 0 / 384.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007189/0.3115, allocations: 359.6 kB / 384.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.561e-05/0.3116, allocations: 113.4 kB / 385 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.289e-05/0.3117, allocations: 8.781 kB / 385 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.312, allocations: 29.31 kB / 385.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.3121, allocations: 55.67 kB / 385.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.3121, allocations: 12.02 kB / 385.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002303/0.3124, allocations: 217 kB / 385.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3124, allocations: 0 / 385.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005943/0.313, allocations: 151.2 kB / 385.5 MB, free: 8.25 MB / 302.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009122/0.3139, allocations: 0.9132 MB / 386.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.315, allocations: 0.7111 MB / 387.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.315, allocations: 1.469 kB / 387.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006023/0.3156, allocations: 0.5901 MB / 387.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.316, allocations: 62.06 kB / 387.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004882/0.3209, allocations: 3.525 MB / 391.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.3213, allocations: 0.8094 MB / 392.1 MB, free: 3.492 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.3215, allocations: 43.42 kB / 392.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.3217, allocations: 147.9 kB / 392.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3217, allocations: 0 / 392.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03794/0.3596, allocations: 9.191 MB / 401.5 MB, free: 248 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.641/10, allocations: 2.031 kB / 401.5 MB, free: 248 kB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines_res.csv --start-time 0 --stop-time 2e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-10 Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1)