Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.00144/0.00144, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001677/0.001677, allocations: 214.4 kB / 24.51 MB, free: 3.945 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.472/1.472, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.234/0.234, allocations: 46.96 MB / 361.7 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002709/0.002709, allocations: 67.89 kB / 0.4969 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.3866, allocations: 66.03 MB / 0.5613 GB, free: 4.105 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004357/0.391, allocations: 2.714 MB / 0.564 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.3924, allocations: 0.6584 MB / 0.5646 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.3925, allocations: 7.938 kB / 0.5646 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.3927, allocations: 51.5 kB / 0.5647 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.3929, allocations: 95.11 kB / 0.5648 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000181/0.393, allocations: 95.88 kB / 0.5649 GB, free: 476 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004477/0.3935, allocations: 406.1 kB / 0.5653 GB, free: 68 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.3937, allocations: 95.28 kB / 0.5654 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.3939, allocations: 155.5 kB / 0.5655 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.3941, allocations: 163.3 kB / 0.5657 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.048e-05/0.3941, allocations: 36 kB / 0.5657 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.86e-05/0.3942, allocations: 32 kB / 0.5657 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.313e-05/0.3943, allocations: 71.77 kB / 0.5658 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.3944, allocations: 147.4 kB / 0.5659 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.3949, allocations: 394.4 kB / 0.5663 GB, free: 14.99 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3949, allocations: 3.938 kB / 0.5663 GB, free: 14.99 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3949, allocations: 4 kB / 0.5663 GB, free: 14.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.3949, allocations: 0 / 0.5663 GB, free: 14.98 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001025/0.3959, allocations: 0.5754 MB / 0.5669 GB, free: 14.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.396, allocations: 8.031 kB / 0.5669 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.616e-05/0.396, allocations: 8.844 kB / 0.5669 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.584e-05/0.3961, allocations: 58.73 kB / 0.567 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.164e-05/0.3961, allocations: 36.75 kB / 0.567 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.3965, allocations: 214.6 kB / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3965, allocations: 21.03 kB / 0.5672 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.3966, allocations: 32.38 kB / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006755/0.3972, allocations: 432.7 kB / 0.5677 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3973, allocations: 0 / 0.5677 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.3973, allocations: 12 kB / 0.5677 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3973, allocations: 4 kB / 0.5677 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005046/0.3978, allocations: 238.5 kB / 0.5679 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.3999, allocations: 1.153 MB / 0.569 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007034/0.4006, allocations: 290.9 kB / 0.5693 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.4009, allocations: 136.1 kB / 0.5694 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.4009, allocations: 8.219 kB / 0.5694 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.4009, allocations: 34.8 kB / 0.5695 GB, free: 11.56 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.774e-06/0.4009, allocations: 0 / 0.5695 GB, free: 11.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002943/0.4039, allocations: 0.8562 MB / 0.5703 GB, free: 10.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.4039, allocations: 55.34 kB / 0.5704 GB, free: 10.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.4042, allocations: 245.1 kB / 0.5706 GB, free: 10.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.4042, allocations: 33.7 kB / 0.5706 GB, free: 10.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.4044, allocations: 168.6 kB / 0.5708 GB, free: 10.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.896e-05/0.4045, allocations: 103.1 kB / 0.5709 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.782e-05/0.4045, allocations: 53.7 kB / 0.5709 GB, free: 10 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4047, allocations: 330.8 kB / 0.5713 GB, free: 9.672 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.4049, allocations: 95.95 kB / 0.5713 GB, free: 9.578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.4052, allocations: 164.8 kB / 0.5715 GB, free: 9.402 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004748/0.4057, allocations: 244.7 kB / 0.5717 GB, free: 9.148 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4057, allocations: 0 / 0.5717 GB, free: 9.148 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001199/0.4069, allocations: 498.6 kB / 0.5722 GB, free: 8.648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.4069, allocations: 6.344 kB / 0.5722 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4069, allocations: 0 / 0.5722 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009838/0.4079, allocations: 241.5 kB / 0.5724 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.408, allocations: 27.98 kB / 0.5725 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004395/0.4124, allocations: 3.454 MB / 0.5758 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.4127, allocations: 35.8 kB / 0.5759 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.4127, allocations: 12 kB / 0.5759 GB, free: 4.645 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001901/0.4129, allocations: 145.8 kB / 0.576 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/0.413, allocations: 23.86 kB / 0.5761 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.254e-05/0.413, allocations: 34.97 kB / 0.5761 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.413, allocations: 3.938 kB / 0.5761 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.413, allocations: 7.984 kB / 0.5761 GB, free: 4.422 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.413, allocations: 0 / 0.5761 GB, free: 4.422 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.4147, allocations: 0.821 MB / 0.5769 GB, free: 3.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.4147, allocations: 4 kB / 0.5769 GB, free: 3.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.324e-05/0.4148, allocations: 16 kB / 0.5769 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008865/0.4157, allocations: 237.5 kB / 0.5771 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.4157, allocations: 7.938 kB / 0.5772 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004456/0.4202, allocations: 3.454 MB / 0.5805 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4202, allocations: 0 / 0.5805 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.4213, allocations: 0.5252 MB / 0.581 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.4215, allocations: 51.72 kB / 0.5811 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.4215, allocations: 4 kB / 0.5811 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.4217, allocations: 27.98 kB / 0.5811 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.4218, allocations: 31.94 kB / 0.5812 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.4219, allocations: 11.94 kB / 0.5812 GB, free: 14.92 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002092/0.4221, allocations: 176.4 kB / 0.5813 GB, free: 14.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4221, allocations: 4 kB / 0.5813 GB, free: 14.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005043/0.4226, allocations: 99.95 kB / 0.5814 GB, free: 14.65 MB / 430.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: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001515/0.4241, allocations: 1.069 MB / 0.5825 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.4252, allocations: 0.5325 MB / 0.583 GB, free: 12.99 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4252, allocations: 256 / 0.583 GB, free: 12.99 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006861/0.4259, allocations: 433.4 kB / 0.5834 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.4264, allocations: 48.36 kB / 0.5835 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004922/0.4313, allocations: 3.047 MB / 0.5864 GB, free: 9.324 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.4315, allocations: 155.2 kB / 0.5866 GB, free: 9.156 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.4316, allocations: 18.3 kB / 0.5866 GB, free: 9.137 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.4317, allocations: 75.41 kB / 0.5867 GB, free: 9.062 MB / 430.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4317, allocations: 0 / 0.5867 GB, free: 9.062 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03502/0.4667, allocations: 7.914 MB / 0.5944 GB, free: 1.387 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.54, allocations: 2.5 kB / 0.5944 GB, free: 1.387 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.687580434023403] Failed to read output from testmodel.py, exit status != 0: ['time', 'twoWay.LossPower', 'twoWay.p.i', 'twoWay.n1.v', 'twoWay.n1.i', 'twoWay.n2.v', 'twoWay.n2.i', 'controlledTwoWay.LossPower', 'controlledTwoWay.p.i', 'controlledTwoWay.n1.v', 'controlledTwoWay.n1.i', 'controlledTwoWay.n2.v', 'controlledTwoWay.n2.i'] 12.727742288028821 12.75493057 12.354890539 Calling exit ...