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) 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 trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_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.0009888/0.0009888, allocations: 99.64 kB / 17 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 194.5 kB / 17.9 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 45.91 MB / 344.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002691, allocations: 8 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1402, allocations: 63.46 MB / 481.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003457/0.1437, allocations: 2.484 MB / 484.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.1451, allocations: 0.6664 MB / 484.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.1453, allocations: 4 kB / 484.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.1454, allocations: 39.69 kB / 484.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.1456, allocations: 83.31 kB / 484.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.1458, allocations: 63.92 kB / 485 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004076/0.1462, allocations: 366.3 kB / 485.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.1464, allocations: 102.5 kB / 485.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.1466, allocations: 123.6 kB / 485.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.1468, allocations: 143.4 kB / 485.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.1468, allocations: 20 kB / 485.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.175e-05/0.1469, allocations: 16 kB / 485.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.1469, allocations: 51.83 kB / 485.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.666e-05/0.147, allocations: 85.52 kB / 485.9 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.1473, allocations: 279.1 kB / 486.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1473, allocations: 0 / 486.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1473, allocations: 0 / 486.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1473, allocations: 0 / 486.1 MB, free: 0.7148 MB / 350.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.0009526/0.1483, allocations: 0.6003 MB / 486.7 MB, free: 68 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.1483, allocations: 8.031 kB / 486.7 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.1484, allocations: 66.58 kB / 486.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.823e-05/0.1485, allocations: 35.62 kB / 486.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.1489, allocations: 266.8 kB / 487.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.1489, allocations: 24.56 kB / 487.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.844e-05/0.149, allocations: 24 kB / 487.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.1496, allocations: 332.5 kB / 487.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1496, allocations: 0 / 487.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.1497, allocations: 16 kB / 487.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.1497, allocations: 4 kB / 487.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005529/0.1502, allocations: 254.1 kB / 487.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.1524, allocations: 1.289 MB / 489 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008502/0.1532, allocations: 481.4 kB / 489.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003359/0.1536, allocations: 173.2 kB / 489.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.1536, allocations: 12.22 kB / 489.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.1537, allocations: 34.73 kB / 489.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.373e-06/0.1537, allocations: 3.938 kB / 489.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003081/0.1567, allocations: 1.172 MB / 490.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.1568, allocations: 51.41 kB / 490.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.1571, allocations: 244.9 kB / 491.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.1571, allocations: 29.7 kB / 491.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.1573, allocations: 164.3 kB / 491.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.93e-05/0.1574, allocations: 98.58 kB / 491.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.1574, allocations: 8 kB / 491.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1576, allocations: 326.8 kB / 491.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.1578, allocations: 115.9 kB / 491.9 MB, free: 10.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/0.1581, allocations: 160.1 kB / 492.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.1584, allocations: 124.4 kB / 492.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1584, allocations: 0 / 492.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001109/0.1595, allocations: 0.526 MB / 492.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.1595, allocations: 8 kB / 492.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1595, allocations: 0 / 492.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009356/0.1605, allocations: 285.5 kB / 493 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.1606, allocations: 31.92 kB / 493 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/0.1647, allocations: 3.506 MB / 496.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.1649, allocations: 43.77 kB / 496.6 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.165, allocations: 8 kB / 496.6 MB, free: 5.617 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001988/0.1652, allocations: 141.8 kB / 496.7 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.738e-05/0.1652, allocations: 23.72 kB / 496.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.93e-05/0.1653, allocations: 38.86 kB / 496.8 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1653, allocations: 7.953 kB / 496.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/0.1654, allocations: 7.984 kB / 496.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.1654, allocations: 0 / 496.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.167, allocations: 0.934 MB / 497.7 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.167, allocations: 7.984 kB / 497.7 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.984e-05/0.1671, allocations: 15.94 kB / 497.8 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008625/0.168, allocations: 285.9 kB / 498 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.168, allocations: 0 / 498 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003828/0.1719, allocations: 3.514 MB / 0.4898 GB, free: 312 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.1719, allocations: 3.953 kB / 0.4898 GB, free: 308 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.173, allocations: 0.5864 MB / 0.4904 GB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.1731, allocations: 120.7 kB / 0.4905 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.1732, allocations: 8 kB / 0.4905 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.1734, allocations: 31.98 kB / 0.4905 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.131e-05/0.1735, allocations: 27.95 kB / 0.4905 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.1735, allocations: 8 kB / 0.4906 GB, free: 15.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001671/0.1737, allocations: 176.4 kB / 0.4907 GB, free: 15.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1737, allocations: 0 / 0.4907 GB, free: 15.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000432/0.1741, allocations: 99.91 kB / 0.4908 GB, free: 15.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001347/0.1755, allocations: 1.144 MB / 0.4919 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1765, allocations: 0.5794 MB / 0.4925 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1765, allocations: 4 kB / 0.4925 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006032/0.1771, allocations: 445.2 kB / 0.4929 GB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.1775, allocations: 54.7 kB / 0.493 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002805/0.1803, allocations: 1.778 MB / 0.4947 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.1807, allocations: 0.764 MB / 0.4955 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.1808, allocations: 22.3 kB / 0.4955 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1809, allocations: 75.41 kB / 0.4956 GB, free: 10.18 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.181, allocations: 0 / 0.4956 GB, free: 10.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.1984, allocations: 6.383 MB / 0.5018 GB, free: 4.012 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/0.1986, allocations: 223.9 kB / 0.502 GB, free: 3.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.008/2.207, allocations: 4 kB / 0.502 GB, free: 3.766 MB / 382.1 MB (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/linux/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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat does not exist to compare? outputFormat=mat