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.001656/0.001656, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002152/0.002152, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.434/1.434, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.00149/0.00149, allocations: 47.92 kB / 378.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3015, allocations: 53.36 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.005328/0.3069, allocations: 3.284 MB / 435.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.3087, allocations: 0.8492 MB / 436 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004062/0.3091, allocations: 7.938 kB / 436 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.3094, allocations: 83.22 kB / 436.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005829/0.31, allocations: 146.7 kB / 436.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.3105, allocations: 199.6 kB / 436.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006716/0.3112, allocations: 0.6193 MB / 437.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.3114, allocations: 161.4 kB / 437.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002685/0.3117, allocations: 251.2 kB / 437.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003535/0.3121, allocations: 286.8 kB / 437.8 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.466e-05/0.3121, allocations: 60 kB / 437.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.283e-05/0.3122, allocations: 56 kB / 437.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.3124, allocations: 131.5 kB / 438 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002386/0.3126, allocations: 231.1 kB / 438.2 MB, free: 284 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006274/0.3132, allocations: 0.6185 MB / 438.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3132, allocations: 4 kB / 438.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3132, allocations: 4 kB / 438.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.3132, allocations: 0 / 438.9 MB, free: 15.65 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.001447/0.3147, allocations: 0.7797 MB / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.3147, allocations: 12.03 kB / 439.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.797e-05/0.3148, allocations: 13.19 kB / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.715e-05/0.3148, allocations: 94.64 kB / 439.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.989e-05/0.3149, allocations: 56.61 kB / 439.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004985/0.3154, allocations: 284.7 kB / 440.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.3155, allocations: 37.38 kB / 440.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.722e-05/0.3156, allocations: 47.94 kB / 440.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.3166, allocations: 0.765 MB / 440.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3166, allocations: 0 / 440.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.3166, allocations: 20 kB / 441 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.3167, allocations: 12 kB / 441 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006788/0.3173, allocations: 315.8 kB / 441.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.3196, allocations: 1.381 MB / 442.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005346/0.3201, allocations: 202.4 kB / 442.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.3203, allocations: 84.81 kB / 442.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.3204, allocations: 4 kB / 442.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004846/0.3209, allocations: 320.5 kB / 443.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.714e-06/0.3209, allocations: 0 / 443.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.001446/0.3223, allocations: 486.2 kB / 443.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/0.3225, allocations: 312.4 kB / 444 MB, free: 10.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003583/0.3228, allocations: 312.2 kB / 444.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.3229, allocations: 33.7 kB / 444.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.3231, allocations: 276 kB / 444.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.11e-05/0.3232, allocations: 95.2 kB / 444.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.3233, allocations: 90 kB / 444.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3234, allocations: 338.8 kB / 445.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.3237, allocations: 130.3 kB / 445.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.3242, allocations: 0.535 MB / 445.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.3247, allocations: 339.1 kB / 446.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3247, allocations: 0 / 446.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001131/0.3258, allocations: 0.5587 MB / 446.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4e-05/0.3259, allocations: 33.7 kB / 446.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3259, allocations: 4 kB / 446.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006071/0.3265, allocations: 166.4 kB / 446.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.3267, allocations: 43.92 kB / 446.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004302/0.331, allocations: 4.615 MB / 451.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004126/0.3314, allocations: 59.66 kB / 451.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.3314, allocations: 20.17 kB / 451.6 MB, free: 1.84 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.0002425/0.3317, allocations: 169.8 kB / 451.8 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-05/0.3317, allocations: 35.75 kB / 451.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.797e-05/0.3318, allocations: 43.08 kB / 451.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3318, allocations: 4 kB / 451.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.3318, allocations: 0 / 451.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3318, allocations: 0 / 451.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004036/0.3322, allocations: 348.5 kB / 452.2 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3322, allocations: 0 / 452.2 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.3324, allocations: 39.91 kB / 452.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000315/0.3327, allocations: 107.3 kB / 452.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.3327, allocations: 8 kB / 452.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0041/0.3368, allocations: 5.332 MB / 457.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3368, allocations: 4.062 kB / 457.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008049/0.3377, allocations: 353 kB / 458.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.3377, allocations: 31.73 kB / 458.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.124e-05/0.3378, allocations: 8 kB / 458.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.338, allocations: 35.97 kB / 458.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3382, allocations: 52 kB / 458.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.3382, allocations: 15.98 kB / 458.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.3384, allocations: 215.1 kB / 458.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3384, allocations: 0 / 458.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005887/0.339, allocations: 155.7 kB / 458.6 MB, free: 10.36 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.001084/0.3401, allocations: 0.9084 MB / 459.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.3413, allocations: 0.7274 MB / 460.2 MB, free: 8.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3413, allocations: 0 / 460.2 MB, free: 8.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000743/0.3421, allocations: 0.5774 MB / 460.8 MB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.3424, allocations: 51.2 kB / 460.8 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.3478, allocations: 3.613 MB / 464.4 MB, free: 4.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.348, allocations: 212.2 kB / 464.6 MB, free: 3.906 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.3482, allocations: 34.97 kB / 464.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.3484, allocations: 143.4 kB / 464.8 MB, free: 3.734 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3484, allocations: 4 kB / 464.8 MB, free: 3.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04181/0.3902, allocations: 10.12 MB / 474.9 MB, free: 9.848 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.19, allocations: 0 / 474.9 MB, free: 9.848 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.596505347057246] 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'] 12.35767592000775 12.372165711 12.055954834 Calling exit ...