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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001838/0.001838, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002641/0.002641, allocations: 212.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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 230.5 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002792/0.002792, allocations: 63.88 kB / 378.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2579, allocations: 53.41 MB / 431.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.004706/0.2626, allocations: 3.276 MB / 435.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.2648, allocations: 0.857 MB / 436.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003298/0.2651, allocations: 4 kB / 436.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.2654, allocations: 79.22 kB / 436.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004947/0.2659, allocations: 146.7 kB / 436.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005631/0.2665, allocations: 207.6 kB / 436.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007785/0.2672, allocations: 0.6154 MB / 437.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003371/0.2676, allocations: 161.4 kB / 437.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002797/0.2679, allocations: 251.1 kB / 437.5 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003496/0.2682, allocations: 282.8 kB / 437.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.771e-05/0.2683, allocations: 60 kB / 437.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.55e-05/0.2684, allocations: 60 kB / 437.9 MB, free: 464 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.2685, allocations: 139.5 kB / 438.1 MB, free: 324 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.2688, allocations: 231 kB / 438.3 MB, free: 92 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006342/0.2694, allocations: 0.6186 MB / 438.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2694, allocations: 0 / 438.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.2694, allocations: 4 kB / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.2694, allocations: 0 / 438.9 MB, free: 15.46 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.001635/0.271, allocations: 0.7836 MB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.2711, allocations: 8.031 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.037e-05/0.2711, allocations: 17.19 kB / 439.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.2712, allocations: 94.64 kB / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.2713, allocations: 56.61 kB / 439.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004868/0.2718, allocations: 276.8 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.2719, allocations: 41.31 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.011e-05/0.2719, allocations: 51.94 kB / 440.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.273, allocations: 0.7572 MB / 441 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.273, allocations: 0 / 441 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.273, allocations: 27.88 kB / 441 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.273, allocations: 16 kB / 441 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006649/0.2737, allocations: 311.8 kB / 441.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.276, allocations: 1.374 MB / 442.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/0.2765, allocations: 198.5 kB / 442.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.2767, allocations: 92.75 kB / 443 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.2767, allocations: 0 / 443 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004772/0.2772, allocations: 325.2 kB / 443.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.2772, allocations: 0 / 443.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.001444/0.2787, allocations: 478.2 kB / 443.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/0.2788, allocations: 324.4 kB / 444.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003522/0.2792, allocations: 304.2 kB / 444.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.2792, allocations: 33.7 kB / 444.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.2794, allocations: 276.1 kB / 444.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.078e-05/0.2795, allocations: 95.2 kB / 444.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.2796, allocations: 82.02 kB / 444.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2798, allocations: 342.8 kB / 445.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.28, allocations: 126.4 kB / 445.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005521/0.2806, allocations: 0.535 MB / 445.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005419/0.2811, allocations: 339.4 kB / 446.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2811, allocations: 0 / 446.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001173/0.2823, allocations: 0.5548 MB / 446.7 MB, free: 6.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.2823, allocations: 37.7 kB / 446.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2823, allocations: 4.094 kB / 446.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006333/0.283, allocations: 170.2 kB / 446.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.2832, allocations: 47.91 kB / 447 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004538/0.2877, allocations: 4.607 MB / 451.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004223/0.2881, allocations: 67.77 kB / 451.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/0.2882, allocations: 16 kB / 451.7 MB, free: 1.66 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.000226/0.2884, allocations: 165.8 kB / 451.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.225e-05/0.2884, allocations: 35.75 kB / 451.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.2885, allocations: 39.08 kB / 451.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2885, allocations: 4 kB / 451.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.2885, allocations: 0 / 451.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2885, allocations: 0 / 451.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004127/0.2889, allocations: 356.7 kB / 452.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.2889, allocations: 4 kB / 452.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001796/0.2891, allocations: 35.98 kB / 452.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003274/0.2895, allocations: 107.2 kB / 452.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.2895, allocations: 15.98 kB / 452.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004405/0.2939, allocations: 5.32 MB / 457.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2939, allocations: 4 kB / 457.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008296/0.2947, allocations: 361 kB / 458.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.298e-05/0.2948, allocations: 31.75 kB / 458.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.228e-05/0.2948, allocations: 11.98 kB / 458.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002783/0.2951, allocations: 31.97 kB / 458.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.2953, allocations: 47.92 kB / 458.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.2953, allocations: 11.98 kB / 458.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002694/0.2956, allocations: 219.1 kB / 458.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2956, allocations: 4 kB / 458.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006444/0.2962, allocations: 143.7 kB / 458.6 MB, free: 10.19 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.001156/0.2974, allocations: 0.9194 MB / 459.5 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.2987, allocations: 0.7234 MB / 460.2 MB, free: 8.449 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.2987, allocations: 0 / 460.2 MB, free: 8.449 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007463/0.2994, allocations: 0.565 MB / 460.8 MB, free: 7.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.2998, allocations: 73.34 kB / 460.9 MB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005641/0.3055, allocations: 3.609 MB / 464.5 MB, free: 3.953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.3057, allocations: 200.2 kB / 464.7 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.3059, allocations: 46.95 kB / 464.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.3061, allocations: 143.4 kB / 464.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3061, allocations: 0 / 464.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0407/0.3468, allocations: 10.11 MB / 475 MB, free: 9.637 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.3, allocations: 11.98 kB / 475 MB, free: 9.625 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines_fmu --startTime=0 --stopTime=2e-08 --stepSize=1e-10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.780351975932717] 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.469726128038019 12.491079469 12.217179036 Calling exit ...