Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.398/1.398, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 47.92 kB / 378.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2755, allocations: 53.36 MB / 432 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.004811/0.2804, allocations: 3.636 MB / 435.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.2819, allocations: 0.8998 MB / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.2821, allocations: 8 kB / 436.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.2823, allocations: 83.2 kB / 436.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003212/0.2826, allocations: 138.8 kB / 436.7 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004141/0.283, allocations: 207.6 kB / 436.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006377/0.2837, allocations: 0.6155 MB / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.284, allocations: 161.4 kB / 437.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.2842, allocations: 255.1 kB / 437.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.2846, allocations: 282.8 kB / 438.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.174e-05/0.2847, allocations: 56 kB / 438.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.356e-05/0.2848, allocations: 56 kB / 438.3 MB, free: 452 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.2849, allocations: 139.5 kB / 438.5 MB, free: 312 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.2851, allocations: 274.8 kB / 438.7 MB, free: 36 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006586/0.2858, allocations: 0.623 MB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2858, allocations: 0 / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2858, allocations: 0 / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.2858, allocations: 0 / 439.4 MB, free: 15.41 MB / 350.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.001482/0.2873, allocations: 0.7758 MB / 440.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.2873, allocations: 12.03 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.396e-05/0.2874, allocations: 13.19 kB / 440.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.2875, allocations: 94.64 kB / 440.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.2876, allocations: 56.61 kB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005147/0.2881, allocations: 276.8 kB / 440.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.2881, allocations: 41.31 kB / 440.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.2882, allocations: 51.94 kB / 440.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008746/0.2891, allocations: 0.5062 MB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2891, allocations: 0 / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.2891, allocations: 27.94 kB / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.2891, allocations: 11.94 kB / 441.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006824/0.2898, allocations: 319.8 kB / 441.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.2922, allocations: 1.498 MB / 443 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000525/0.2928, allocations: 194.5 kB / 443.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.293, allocations: 92.75 kB / 443.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.293, allocations: 0 / 443.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004403/0.2935, allocations: 225.6 kB / 443.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.342e-06/0.2935, allocations: 0 / 443.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.001432/0.2949, allocations: 478.2 kB / 444 MB, free: 10.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002015/0.2951, allocations: 316.4 kB / 444.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003763/0.2955, allocations: 308.2 kB / 444.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.801e-05/0.2955, allocations: 33.7 kB / 444.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.2957, allocations: 272.1 kB / 444.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.1e-05/0.2958, allocations: 99.2 kB / 445 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.2959, allocations: 86 kB / 445.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.2961, allocations: 338.8 kB / 445.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.2963, allocations: 100.7 kB / 445.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.2967, allocations: 265.2 kB / 445.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005525/0.2973, allocations: 335.1 kB / 446.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2973, allocations: 0 / 446.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001141/0.2984, allocations: 0.5297 MB / 446.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.2985, allocations: 33.69 kB / 446.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.2985, allocations: 4 kB / 446.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006175/0.2991, allocations: 170.4 kB / 446.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/0.2993, allocations: 51.84 kB / 446.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004568/0.3038, allocations: 4.634 MB / 451.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004017/0.3042, allocations: 63.64 kB / 451.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.3043, allocations: 16 kB / 451.6 MB, free: 2.316 MB / 350.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.000244/0.3045, allocations: 169.8 kB / 451.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.247e-05/0.3046, allocations: 39.75 kB / 451.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.75e-05/0.3046, allocations: 35.08 kB / 451.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3047, allocations: 4 kB / 451.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.3047, allocations: 4 kB / 451.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3047, allocations: 0 / 451.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004564/0.3051, allocations: 392.3 kB / 452.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3051, allocations: 3.984 kB / 452.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.3053, allocations: 32.17 kB / 452.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003164/0.3056, allocations: 111.2 kB / 452.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.3056, allocations: 19.98 kB / 452.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004312/0.3099, allocations: 5.344 MB / 457.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3099, allocations: 96 / 457.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007758/0.3107, allocations: 360.9 kB / 458.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.909e-05/0.3108, allocations: 39.73 kB / 458.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.3108, allocations: 4 kB / 458.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.3111, allocations: 31.97 kB / 458.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.3112, allocations: 51.91 kB / 458.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.3112, allocations: 12 kB / 458.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002404/0.3115, allocations: 223.1 kB / 458.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3115, allocations: 0 / 458.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005477/0.312, allocations: 147.7 kB / 458.6 MB, free: 10.77 MB / 366.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.001145/0.3132, allocations: 0.9083 MB / 459.5 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.3144, allocations: 0.6951 MB / 460.2 MB, free: 9.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3144, allocations: 8.062 kB / 460.2 MB, free: 9.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007611/0.3151, allocations: 0.565 MB / 460.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.3155, allocations: 67.42 kB / 460.8 MB, free: 8.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00518/0.3207, allocations: 3.486 MB / 464.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.3211, allocations: 0.8079 MB / 465.1 MB, free: 3.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001438/0.3213, allocations: 46.95 kB / 465.2 MB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.3215, allocations: 143.4 kB / 465.3 MB, free: 3.703 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3215, allocations: 0 / 465.3 MB, free: 3.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04355/0.365, allocations: 9.588 MB / 474.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.72, allocations: 22.3 kB / 474.9 MB, free: 10.28 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines_fmu --startTime=0 --stopTime=2e-08 --stepSize=1e-10 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.0146332050208] Failed to read output from testmodel.py, exit status != 0: ['time', 'line1.v1', 'line1.v2', 'line1.i1', 'line1.i2', 'line2.v1', 'line2.v2', 'line2.i1', 'line2.i2', 'line3.v1', 'line3.v2', 'line3.i1', 'line3.i2'] 11.882264273008332 11.897021959 11.608215727 Calling exit ...