Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001588/0.001588, 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.002208/0.002208, 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.589/1.589, allocations: 230.6 MB / 258.3 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2453/0.2453, allocations: 44.93 MB / 359.6 MB, free: 6.078 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 63.91 kB / 0.4938 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3759, allocations: 65.48 MB / 0.5577 GB, free: 7.375 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004197/0.3801, allocations: 2.711 MB / 0.5604 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.3814, allocations: 0.6584 MB / 0.561 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.3815, allocations: 7.938 kB / 0.561 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.3817, allocations: 51.5 kB / 0.5611 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/0.3819, allocations: 91.12 kB / 0.5612 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.3821, allocations: 99.86 kB / 0.5613 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000462/0.3825, allocations: 406 kB / 0.5616 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.3827, allocations: 95.33 kB / 0.5617 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.3829, allocations: 155.5 kB / 0.5619 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.3831, allocations: 155.4 kB / 0.562 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.859e-05/0.3832, allocations: 36 kB / 0.5621 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.912e-05/0.3832, allocations: 32 kB / 0.5621 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.02e-05/0.3833, allocations: 83.62 kB / 0.5622 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.3835, allocations: 147.4 kB / 0.5623 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004397/0.3839, allocations: 390.4 kB / 0.5627 GB, free: 2.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3839, allocations: 3.984 kB / 0.5627 GB, free: 2.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3839, allocations: 4 kB / 0.5627 GB, free: 2.469 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3839, allocations: 0 / 0.5627 GB, free: 2.469 MB / 398.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.001072/0.385, allocations: 0.5754 MB / 0.5633 GB, free: 1.863 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.385, allocations: 11.98 kB / 0.5633 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.396e-05/0.3851, allocations: 8.844 kB / 0.5633 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.602e-05/0.3851, allocations: 62.72 kB / 0.5633 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.859e-05/0.3852, allocations: 36.75 kB / 0.5634 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004063/0.3856, allocations: 210.7 kB / 0.5636 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.3857, allocations: 21.03 kB / 0.5636 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/0.3857, allocations: 28.38 kB / 0.5636 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007438/0.3864, allocations: 436.7 kB / 0.564 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3865, allocations: 0 / 0.564 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.3865, allocations: 12 kB / 0.564 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.3865, allocations: 7.938 kB / 0.5641 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005108/0.387, allocations: 242.4 kB / 0.5643 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.3891, allocations: 1.149 MB / 0.5654 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007249/0.3898, allocations: 286.9 kB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003028/0.3901, allocations: 141.2 kB / 0.5658 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.3902, allocations: 4.234 kB / 0.5658 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.3902, allocations: 34.8 kB / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.3902, allocations: 0 / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002907/0.3931, allocations: 0.86 MB / 0.5667 GB, free: 14.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.3932, allocations: 59.39 kB / 0.5667 GB, free: 14.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.3934, allocations: 241.1 kB / 0.567 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.3935, allocations: 33.7 kB / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.3936, allocations: 164.6 kB / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.875e-05/0.3937, allocations: 99.16 kB / 0.5673 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.3938, allocations: 53.7 kB / 0.5673 GB, free: 13.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3939, allocations: 330.8 kB / 0.5676 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.3942, allocations: 99.94 kB / 0.5677 GB, free: 13.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.3945, allocations: 156.8 kB / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004911/0.3949, allocations: 248.7 kB / 0.5681 GB, free: 12.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3949, allocations: 0 / 0.5681 GB, free: 12.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001206/0.3962, allocations: 494.6 kB / 0.5686 GB, free: 12.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.3962, allocations: 4 kB / 0.5686 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.016e-06/0.3962, allocations: 0 / 0.5686 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.3972, allocations: 241.5 kB / 0.5688 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.3974, allocations: 31.92 kB / 0.5688 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004645/0.402, allocations: 3.458 MB / 0.5722 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.4023, allocations: 35.77 kB / 0.5723 GB, free: 8.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.4023, allocations: 15.94 kB / 0.5723 GB, free: 8.117 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.0002152/0.4025, allocations: 141.8 kB / 0.5724 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.805e-05/0.4026, allocations: 23.86 kB / 0.5724 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.046e-05/0.4026, allocations: 42.89 kB / 0.5725 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.4027, allocations: 7.922 kB / 0.5725 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.4027, allocations: 4 kB / 0.5725 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.4027, allocations: 0 / 0.5725 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.4043, allocations: 0.8095 MB / 0.5733 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.4043, allocations: 4 kB / 0.5733 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.477e-05/0.4044, allocations: 19.98 kB / 0.5733 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009239/0.4053, allocations: 241.4 kB / 0.5735 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.4053, allocations: 4 kB / 0.5735 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004228/0.4095, allocations: 3.451 MB / 0.5769 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4096, allocations: 0 / 0.5769 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.4107, allocations: 0.5213 MB / 0.5774 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.4108, allocations: 55.72 kB / 0.5775 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.4108, allocations: 4 kB / 0.5775 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.4111, allocations: 31.97 kB / 0.5775 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4112, allocations: 31.94 kB / 0.5775 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.4112, allocations: 11.94 kB / 0.5775 GB, free: 2.398 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001735/0.4114, allocations: 172.5 kB / 0.5777 GB, free: 2.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4114, allocations: 0 / 0.5777 GB, free: 2.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004636/0.4118, allocations: 104 kB / 0.5778 GB, free: 2.129 MB / 414.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.001441/0.4133, allocations: 1.073 MB / 0.5789 GB, free: 1.023 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.4143, allocations: 0.5325 MB / 0.5794 GB, free: 476 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4143, allocations: 256 / 0.5794 GB, free: 476 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000636/0.415, allocations: 433.4 kB / 0.5798 GB, free: 16 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.4154, allocations: 48.77 kB / 0.5798 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.4203, allocations: 3.046 MB / 0.5828 GB, free: 12.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.4205, allocations: 159.1 kB / 0.583 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.35e-05/0.4206, allocations: 18.3 kB / 0.583 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.4207, allocations: 75.41 kB / 0.583 GB, free: 12.53 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4207, allocations: 0 / 0.583 GB, free: 12.53 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.4582, allocations: 7.913 MB / 0.5908 GB, free: 4.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.5, allocations: 7.219 kB / 0.5908 GB, free: 4.855 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.741795305977575] 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.683407271979377 12.707631001 12.319416064 Calling exit ...