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.002002/0.002002, allocations: 104.1 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.002143/0.002143, 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.467/1.467, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2381/0.2381, allocations: 46.12 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.002691/0.002691, allocations: 82.8 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1226, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005401/0.128, allocations: 2.92 MB / 483.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.1295, allocations: 0.6856 MB / 483.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.1298, allocations: 7.938 kB / 483.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002382/0.1301, allocations: 51.5 kB / 483.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.1304, allocations: 91.12 kB / 484 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.1307, allocations: 95.86 kB / 484.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000552/0.1312, allocations: 414.2 kB / 484.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.1315, allocations: 119.2 kB / 484.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.1317, allocations: 159.5 kB / 484.7 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.1319, allocations: 167.3 kB / 484.9 MB, free: 420 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.394e-05/0.132, allocations: 32 kB / 484.9 MB, free: 388 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6e-05/0.1321, allocations: 36 kB / 485 MB, free: 352 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.838e-05/0.1322, allocations: 75.75 kB / 485 MB, free: 276 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.1324, allocations: 163.2 kB / 485.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004209/0.1328, allocations: 390.7 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1328, allocations: 0 / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.1328, allocations: 0 / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1328, allocations: 3.938 kB / 485.6 MB, free: 15.72 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.000956/0.1338, allocations: 0.6238 MB / 486.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1338, allocations: 17.09 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.764e-05/0.1339, allocations: 66.67 kB / 486.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.844e-05/0.134, allocations: 36.47 kB / 486.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.1343, allocations: 268.2 kB / 486.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.1343, allocations: 24.94 kB / 486.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.1343, allocations: 24.38 kB / 486.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.1349, allocations: 336.5 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1349, allocations: 0 / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.135, allocations: 12 kB / 487 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.135, allocations: 8 kB / 487 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005156/0.1355, allocations: 242.1 kB / 487.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.1376, allocations: 1.25 MB / 488.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007848/0.1384, allocations: 483.4 kB / 488.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/0.1387, allocations: 157.3 kB / 489.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.1387, allocations: 4.234 kB / 489.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.1388, allocations: 34.8 kB / 489.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.423e-06/0.1388, allocations: 8 kB / 489.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003048/0.1418, allocations: 1.018 MB / 490.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.1419, allocations: 51.41 kB / 490.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.1422, allocations: 245 kB / 490.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.1422, allocations: 29.7 kB / 490.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.1424, allocations: 168.3 kB / 490.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.541e-05/0.1425, allocations: 90.64 kB / 490.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.1426, allocations: 57.7 kB / 490.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.1428, allocations: 334.8 kB / 491.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.143, allocations: 95.95 kB / 491.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.1433, allocations: 156 kB / 491.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005157/0.1438, allocations: 236.2 kB / 491.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1439, allocations: 0 / 491.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001174/0.145, allocations: 499.1 kB / 492.1 MB, free: 8.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1451, allocations: 4 kB / 492.1 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.1451, allocations: 0 / 492.1 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009852/0.1461, allocations: 245.5 kB / 492.3 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.1463, allocations: 27.98 kB / 492.4 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004665/0.1509, allocations: 3.692 MB / 496 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.1512, allocations: 39.77 kB / 496.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.1513, allocations: 8 kB / 496.1 MB, free: 4.547 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.0001889/0.1515, allocations: 145.8 kB / 496.2 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.822e-05/0.1515, allocations: 23.72 kB / 496.3 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.889e-05/0.1516, allocations: 34.88 kB / 496.3 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1516, allocations: 0 / 496.3 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.1516, allocations: 7.938 kB / 496.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.1517, allocations: 7.984 kB / 496.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.1534, allocations: 0.8899 MB / 497.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1534, allocations: 0 / 497.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.287e-05/0.1535, allocations: 15.98 kB / 497.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000887/0.1544, allocations: 233.5 kB / 497.4 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.1544, allocations: 8 kB / 497.4 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004502/0.1589, allocations: 3.692 MB / 0.4894 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.159, allocations: 0 / 0.4894 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.1602, allocations: 0.5329 MB / 0.4899 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.1604, allocations: 120.7 kB / 0.49 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.334e-05/0.1604, allocations: 4 kB / 0.49 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.1607, allocations: 31.97 kB / 0.4901 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.1608, allocations: 23.97 kB / 0.4901 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.1608, allocations: 12 kB / 0.4901 GB, free: 14.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.161, allocations: 176.4 kB / 0.4903 GB, free: 14.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.161, allocations: 0 / 0.4903 GB, free: 14.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005046/0.1615, allocations: 107.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.001559/0.1631, allocations: 1.073 MB / 0.4914 GB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.1643, allocations: 0.5635 MB / 0.492 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1643, allocations: 0 / 0.492 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006569/0.165, allocations: 433.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.0005045/0.1655, allocations: 48.34 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.00508/0.1706, allocations: 3.042 MB / 0.4954 GB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.1711, allocations: 0.7714 MB / 0.4961 GB, free: 7.945 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.1712, allocations: 22.28 kB / 0.4962 GB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.1714, allocations: 75.41 kB / 0.4962 GB, free: 7.848 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1714, allocations: 4 kB / 0.4962 GB, free: 7.844 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04577/0.2172, allocations: 7.076 MB / 0.5032 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.967/10.18, allocations: 3.75 kB / 0.5032 GB, free: 0.9648 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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)