Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.001614/0.001614, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001763/0.001763, allocations: 207.5 kB / 24.53 MB, free: 4.07 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.424/1.424, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2121/0.2121, allocations: 46.93 MB / 361.6 MB, free: 4.195 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 79.86 kB / 0.497 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3062, allocations: 66.07 MB / 0.5615 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004072/0.3103, allocations: 2.948 MB / 0.5644 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.3114, allocations: 0.6934 MB / 0.565 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.3115, allocations: 8 kB / 0.5651 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.3117, allocations: 59.44 kB / 0.5651 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.3119, allocations: 87.19 kB / 0.5652 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.3121, allocations: 91.86 kB / 0.5653 GB, free: 412 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.3125, allocations: 418.1 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.3127, allocations: 91.28 kB / 0.5658 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.3128, allocations: 159.5 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.3131, allocations: 167.3 kB / 0.5661 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.077e-05/0.3131, allocations: 36 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.303e-05/0.3132, allocations: 32 kB / 0.5661 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.503e-05/0.3132, allocations: 71.75 kB / 0.5662 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.3134, allocations: 171.2 kB / 0.5664 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004005/0.3138, allocations: 394.4 kB / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3138, allocations: 4 kB / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3138, allocations: 0 / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.3138, allocations: 0 / 0.5668 GB, free: 14.89 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.001015/0.3148, allocations: 0.5676 MB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3149, allocations: 8.031 kB / 0.5673 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.675e-05/0.3149, allocations: 12.84 kB / 0.5673 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.793e-05/0.3149, allocations: 66.66 kB / 0.5674 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.069e-05/0.315, allocations: 36.75 kB / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.3154, allocations: 211.6 kB / 0.5676 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.3154, allocations: 17.03 kB / 0.5676 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.3155, allocations: 28.38 kB / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006228/0.3161, allocations: 337.8 kB / 0.568 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3161, allocations: 3.984 kB / 0.568 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.3161, allocations: 12 kB / 0.568 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.3161, allocations: 4 kB / 0.568 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005168/0.3167, allocations: 242.4 kB / 0.5682 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.3187, allocations: 1.219 MB / 0.5694 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.3194, allocations: 297.6 kB / 0.5697 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.3197, allocations: 141.2 kB / 0.5699 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.3197, allocations: 4.234 kB / 0.5699 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.3198, allocations: 34.8 kB / 0.5699 GB, free: 11.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.413e-06/0.3198, allocations: 0 / 0.5699 GB, free: 11.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002928/0.3227, allocations: 0.8523 MB / 0.5707 GB, free: 10.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.3227, allocations: 55.41 kB / 0.5708 GB, free: 10.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/0.323, allocations: 241.1 kB / 0.571 GB, free: 10.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.323, allocations: 33.7 kB / 0.571 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.3232, allocations: 172.6 kB / 0.5712 GB, free: 10.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.673e-05/0.3232, allocations: 99.09 kB / 0.5713 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.3233, allocations: 53.7 kB / 0.5714 GB, free: 9.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3235, allocations: 334.8 kB / 0.5717 GB, free: 9.621 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002434/0.3237, allocations: 95.95 kB / 0.5718 GB, free: 9.527 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.324, allocations: 163.9 kB / 0.5719 GB, free: 9.352 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.3245, allocations: 244.2 kB / 0.5722 GB, free: 9.098 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3245, allocations: 0 / 0.5722 GB, free: 9.098 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001117/0.3256, allocations: 490.7 kB / 0.5726 GB, free: 8.605 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3256, allocations: 4 kB / 0.5726 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3256, allocations: 0 / 0.5726 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009587/0.3266, allocations: 241.5 kB / 0.5729 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.3267, allocations: 31.92 kB / 0.5729 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/0.331, allocations: 3.49 MB / 0.5763 GB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.3312, allocations: 39.7 kB / 0.5763 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.3312, allocations: 4 kB / 0.5763 GB, free: 4.566 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.0001723/0.3314, allocations: 153.2 kB / 0.5765 GB, free: 4.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.3314, allocations: 23.86 kB / 0.5765 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.77e-05/0.3315, allocations: 34.95 kB / 0.5765 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3315, allocations: 7.938 kB / 0.5765 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.3315, allocations: 4 kB / 0.5765 GB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3315, allocations: 3.984 kB / 0.5765 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.3332, allocations: 0.8475 MB / 0.5774 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3332, allocations: 0 / 0.5774 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.259e-05/0.3333, allocations: 19.94 kB / 0.5774 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000894/0.3342, allocations: 233.5 kB / 0.5776 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.3342, allocations: 4 kB / 0.5776 GB, free: 3.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004146/0.3384, allocations: 3.486 MB / 0.581 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3384, allocations: 64 / 0.581 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.3395, allocations: 0.529 MB / 0.5815 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.3396, allocations: 47.72 kB / 0.5816 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.229e-05/0.3397, allocations: 4 kB / 0.5816 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.3399, allocations: 31.97 kB / 0.5816 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.675e-05/0.34, allocations: 35.88 kB / 0.5817 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.34, allocations: 11.94 kB / 0.5817 GB, free: 14.78 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001735/0.3402, allocations: 176.4 kB / 0.5818 GB, free: 14.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3402, allocations: 0 / 0.5818 GB, free: 14.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004389/0.3406, allocations: 104 kB / 0.5819 GB, free: 14.51 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.001482/0.3421, allocations: 1.061 MB / 0.583 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.3433, allocations: 0.5404 MB / 0.5835 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3433, allocations: 0 / 0.5835 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006809/0.344, allocations: 429.6 kB / 0.5839 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004258/0.3444, allocations: 40.36 kB / 0.5839 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005125/0.3496, allocations: 3.052 MB / 0.5869 GB, free: 9.188 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/0.35, allocations: 0.7639 MB / 0.5877 GB, free: 8.398 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.3501, allocations: 22.28 kB / 0.5877 GB, free: 8.379 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.3502, allocations: 75.42 kB / 0.5878 GB, free: 8.305 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3502, allocations: 0 / 0.5878 GB, free: 8.305 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03461/0.3848, allocations: 7.52 MB / 0.5951 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.56, allocations: 11.86 kB / 0.5951 GB, free: 0.9336 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.38648266904056] 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'] 11.720941749983467 11.736715118 11.419795742 Calling exit ...