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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001406/0.001406, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2479/0.2479, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB 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.002206/0.002206, allocations: 80.64 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1537, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004981/0.1588, allocations: 2.928 MB / 483.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.1604, allocations: 0.6856 MB / 483.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.1606, allocations: 4 kB / 483.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.1608, allocations: 55.44 kB / 483.9 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.161, allocations: 87.19 kB / 484 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.1612, allocations: 95.86 kB / 484.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004789/0.1617, allocations: 418.1 kB / 484.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.162, allocations: 119.2 kB / 484.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.1622, allocations: 155.5 kB / 484.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.1625, allocations: 167.3 kB / 484.9 MB, free: 412 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.948e-05/0.1625, allocations: 32 kB / 484.9 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.217e-05/0.1626, allocations: 36 kB / 485 MB, free: 344 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.94e-05/0.1627, allocations: 75.75 kB / 485 MB, free: 268 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.1629, allocations: 167.2 kB / 485.2 MB, free: 100 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004183/0.1633, allocations: 390.7 kB / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1633, allocations: 0 / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1633, allocations: 0 / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.1633, allocations: 0 / 485.6 MB, free: 15.71 MB / 366.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.001087/0.1644, allocations: 0.6237 MB / 486.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.1645, allocations: 13.11 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.36e-05/0.1646, allocations: 66.73 kB / 486.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.54e-05/0.1646, allocations: 36.47 kB / 486.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.165, allocations: 276.1 kB / 486.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.165, allocations: 20.94 kB / 486.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.1651, allocations: 24.38 kB / 486.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006316/0.1657, allocations: 332.5 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1657, allocations: 4 kB / 487 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.1658, allocations: 12 kB / 487 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1658, allocations: 11.94 kB / 487 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000512/0.1663, allocations: 238.1 kB / 487.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.1684, allocations: 1.257 MB / 488.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008271/0.1692, allocations: 471.3 kB / 488.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000322/0.1696, allocations: 161.3 kB / 489.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.1696, allocations: 4.234 kB / 489.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.1696, allocations: 34.73 kB / 489.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.823e-06/0.1697, allocations: 0 / 489.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003048/0.1727, allocations: 1.022 MB / 490.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.1728, allocations: 55.41 kB / 490.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.173, allocations: 241 kB / 490.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.1731, allocations: 29.7 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.1732, allocations: 172.2 kB / 490.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.1734, allocations: 90.64 kB / 490.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1735, allocations: 53.7 kB / 490.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1736, allocations: 338.8 kB / 491.1 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/0.1739, allocations: 95.95 kB / 491.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.1742, allocations: 152.1 kB / 491.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004795/0.1747, allocations: 244.2 kB / 491.6 MB, free: 9.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1747, allocations: 0 / 491.6 MB, free: 9.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001158/0.1758, allocations: 0.4913 MB / 492.1 MB, free: 8.828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.1759, allocations: 4 kB / 492.1 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1759, allocations: 0 / 492.1 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009955/0.1769, allocations: 241.5 kB / 492.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.1771, allocations: 35.92 kB / 492.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004694/0.1818, allocations: 3.68 MB / 496 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.1821, allocations: 35.7 kB / 496.1 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.1821, allocations: 12.06 kB / 496.1 MB, free: 4.539 MB / 366.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.0002444/0.1824, allocations: 145.8 kB / 496.2 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.748e-05/0.1825, allocations: 23.72 kB / 496.3 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.859e-05/0.1826, allocations: 34.88 kB / 496.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.1826, allocations: 0 / 496.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.115e-05/0.1826, allocations: 7.938 kB / 496.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.1826, allocations: 3.984 kB / 496.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.1851, allocations: 0.8899 MB / 497.2 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1852, allocations: 0 / 497.2 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.1853, allocations: 23.92 kB / 497.2 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.1867, allocations: 241.5 kB / 497.4 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.1868, allocations: 8 kB / 497.5 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006839/0.1936, allocations: 3.677 MB / 0.4894 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1937, allocations: 0 / 0.4894 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.1956, allocations: 0.5329 MB / 0.4899 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.1958, allocations: 124.7 kB / 0.49 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.116e-05/0.1959, allocations: 0 / 0.49 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.1963, allocations: 31.97 kB / 0.4901 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.1965, allocations: 27.97 kB / 0.4901 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.1965, allocations: 8 kB / 0.4901 GB, free: 14.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002994/0.1968, allocations: 176.4 kB / 0.4903 GB, free: 14.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.056e-06/0.1969, allocations: 0 / 0.4903 GB, free: 14.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008476/0.1977, allocations: 111.8 kB / 0.4904 GB, free: 14.09 MB / 382.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.002335/0.2001, allocations: 1.08 MB / 0.4914 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.2017, allocations: 0.5596 MB / 0.492 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.2018, allocations: 0 / 0.492 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000721/0.2025, allocations: 429.2 kB / 0.4924 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005559/0.203, allocations: 48.41 kB / 0.4924 GB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005331/0.2084, allocations: 3.046 MB / 0.4954 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005164/0.2089, allocations: 0.7714 MB / 0.4961 GB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.2091, allocations: 22.28 kB / 0.4962 GB, free: 7.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.2093, allocations: 75.41 kB / 0.4962 GB, free: 7.84 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2093, allocations: 0 / 0.4962 GB, free: 7.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03948/0.2487, allocations: 7.085 MB / 0.5032 GB, free: 0.957 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.943/10.19, allocations: 7.75 kB / 0.5032 GB, free: 0.9492 MB / 382.1 MB (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)