Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001195/0.001195, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.001312/0.001312, allocations: 219.9 kB / 22.92 MB, free: 5.191 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.277/1.277, allocations: 230.2 MB / 256.2 MB, free: 8.578 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1966/0.1966, allocations: 46.88 MB / 359.3 MB, free: 4.957 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 84.19 kB / 0.494 GB, free: 9.109 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2529, allocations: 65.98 MB / 0.5584 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003856/0.2567, allocations: 2.944 MB / 0.5613 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.2578, allocations: 0.6934 MB / 0.5619 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.2579, allocations: 11.94 kB / 0.562 GB, free: 1.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.258, allocations: 51.5 kB / 0.562 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.2582, allocations: 91.12 kB / 0.5621 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.2584, allocations: 95.86 kB / 0.5622 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004192/0.2588, allocations: 414.1 kB / 0.5626 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001867/0.259, allocations: 94.92 kB / 0.5627 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.2591, allocations: 151.5 kB / 0.5628 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.2593, allocations: 167.3 kB / 0.563 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.631e-05/0.2594, allocations: 36 kB / 0.563 GB, free: 472 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.366e-05/0.2594, allocations: 32 kB / 0.563 GB, free: 440 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.704e-05/0.2595, allocations: 75.75 kB / 0.5631 GB, free: 364 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.2597, allocations: 171.2 kB / 0.5633 GB, free: 192 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004066/0.2601, allocations: 402.5 kB / 0.5637 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2601, allocations: 4 kB / 0.5637 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2601, allocations: 0 / 0.5637 GB, free: 15.79 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2601, allocations: 0 / 0.5637 GB, free: 15.79 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.00098/0.2611, allocations: 0.6413 MB / 0.5643 GB, free: 15.1 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2611, allocations: 8.031 kB / 0.5643 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.229e-05/0.2612, allocations: 66.72 kB / 0.5644 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.984e-05/0.2612, allocations: 32.75 kB / 0.5644 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.2616, allocations: 277.2 kB / 0.5647 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.2616, allocations: 24.94 kB / 0.5647 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.2616, allocations: 24.38 kB / 0.5647 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005541/0.2622, allocations: 328.6 kB / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2622, allocations: 0 / 0.565 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.2622, allocations: 15.98 kB / 0.565 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.2622, allocations: 8 kB / 0.565 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.2627, allocations: 246.1 kB / 0.5653 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.2646, allocations: 1.242 MB / 0.5665 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/0.2653, allocations: 445.1 kB / 0.5669 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.2656, allocations: 135.8 kB / 0.567 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.2656, allocations: 4.234 kB / 0.567 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.2656, allocations: 38.78 kB / 0.5671 GB, free: 12.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.293e-06/0.2656, allocations: 4 kB / 0.5671 GB, free: 12.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002855/0.2685, allocations: 1.011 MB / 0.5681 GB, free: 10.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.2685, allocations: 51.41 kB / 0.5681 GB, free: 10.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.2688, allocations: 245 kB / 0.5684 GB, free: 10.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.2688, allocations: 37.64 kB / 0.5684 GB, free: 10.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.2689, allocations: 172.5 kB / 0.5686 GB, free: 10.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.117e-05/0.269, allocations: 95.17 kB / 0.5686 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-05/0.2691, allocations: 49.7 kB / 0.5687 GB, free: 10.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2692, allocations: 342.8 kB / 0.569 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.2694, allocations: 103.9 kB / 0.5691 GB, free: 9.855 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002489/0.2697, allocations: 148 kB / 0.5693 GB, free: 9.695 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.2701, allocations: 248.1 kB / 0.5695 GB, free: 9.438 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2701, allocations: 0 / 0.5695 GB, free: 9.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001063/0.2712, allocations: 495.2 kB / 0.57 GB, free: 8.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.2712, allocations: 4 kB / 0.57 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2712, allocations: 7.938 kB / 0.57 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009063/0.2721, allocations: 237.5 kB / 0.5702 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.2723, allocations: 27.98 kB / 0.5702 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004168/0.2764, allocations: 3.693 MB / 0.5738 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.2766, allocations: 35.92 kB / 0.5739 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.2766, allocations: 8 kB / 0.5739 GB, free: 4.648 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.0001476/0.2768, allocations: 141.8 kB / 0.574 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.2768, allocations: 27.86 kB / 0.574 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.816e-05/0.2769, allocations: 34.86 kB / 0.5741 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.2769, allocations: 4 kB / 0.5741 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.2769, allocations: 3.938 kB / 0.5741 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.2769, allocations: 4 kB / 0.5741 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.2784, allocations: 0.8843 MB / 0.575 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2784, allocations: 0 / 0.575 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.97e-05/0.2785, allocations: 15.98 kB / 0.575 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008231/0.2793, allocations: 241.5 kB / 0.5752 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.2794, allocations: 12 kB / 0.5752 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003936/0.2833, allocations: 3.677 MB / 0.5788 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2833, allocations: 3.938 kB / 0.5788 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.2843, allocations: 0.5329 MB / 0.5793 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.2844, allocations: 120.8 kB / 0.5794 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.2845, allocations: 8 kB / 0.5794 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.2847, allocations: 31.97 kB / 0.5795 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.2848, allocations: 27.95 kB / 0.5795 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2848, allocations: 11.94 kB / 0.5795 GB, free: 14.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001535/0.2849, allocations: 176.4 kB / 0.5797 GB, free: 14.31 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2849, allocations: 0 / 0.5797 GB, free: 14.31 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003856/0.2853, allocations: 107.9 kB / 0.5798 GB, free: 14.2 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.001297/0.2866, allocations: 1.065 MB / 0.5808 GB, free: 13.11 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009287/0.2875, allocations: 0.54 MB / 0.5814 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2875, allocations: 0 / 0.5814 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005819/0.2881, allocations: 429.5 kB / 0.5818 GB, free: 12.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.2885, allocations: 47.8 kB / 0.5818 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004267/0.2927, allocations: 3.031 MB / 0.5848 GB, free: 8.906 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.2931, allocations: 0.7639 MB / 0.5855 GB, free: 8.113 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.843e-05/0.2931, allocations: 26.27 kB / 0.5855 GB, free: 8.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.2932, allocations: 75.42 kB / 0.5856 GB, free: 8.016 MB / 430.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2932, allocations: 0 / 0.5856 GB, free: 8.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03635/0.3296, allocations: 7.277 MB / 0.5927 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.9/9.23, allocations: 10.61 kB / 0.5927 GB, free: 0.8594 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.715104905000771]