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.001108/0.001107, allocations: 92.48 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2361/0.2361, allocations: 45.9 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.000263, allocations: 8 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1241, allocations: 63.46 MB / 481.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002473/0.1266, allocations: 2.336 MB / 483.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009204/0.1276, allocations: 0.6783 MB / 484.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1277, allocations: 8 kB / 484.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.249e-05/0.1277, allocations: 31.75 kB / 484.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.1279, allocations: 119.6 kB / 484.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001218/0.1281, allocations: 71.92 kB / 484.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002889/0.1283, allocations: 279.2 kB / 485 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.1285, allocations: 90.61 kB / 485.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.1287, allocations: 119.6 kB / 485.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.1288, allocations: 143.4 kB / 485.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.801e-05/0.1289, allocations: 16 kB / 485.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.837e-05/0.1289, allocations: 20 kB / 485.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.42e-05/0.129, allocations: 55.81 kB / 485.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.1291, allocations: 85.52 kB / 485.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.1293, allocations: 283.1 kB / 485.8 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1293, allocations: 0 / 485.8 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1293, allocations: 0 / 485.8 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.1294, allocations: 0 / 485.8 MB, free: 0.9336 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.0008674/0.1302, allocations: 0.5963 MB / 486.4 MB, free: 296 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1303, allocations: 8.031 kB / 486.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.09e-05/0.1303, allocations: 70.55 kB / 486.5 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.577e-05/0.1304, allocations: 39.61 kB / 486.5 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.1307, allocations: 262.9 kB / 486.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.1307, allocations: 20.56 kB / 486.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.1307, allocations: 28 kB / 486.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.1313, allocations: 332.5 kB / 487.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.1313, allocations: 0 / 487.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.1313, allocations: 12 kB / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.1313, allocations: 8 kB / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004751/0.1318, allocations: 258.1 kB / 487.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.1336, allocations: 1.285 MB / 488.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007227/0.1344, allocations: 487.9 kB / 489.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.1344, allocations: 4.234 kB / 489.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.1344, allocations: 38.8 kB / 489.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.343e-06/0.1344, allocations: 3.938 kB / 489.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002865/0.1373, allocations: 1.165 MB / 490.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.1374, allocations: 51.41 kB / 490.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.1376, allocations: 248.9 kB / 490.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.1376, allocations: 29.7 kB / 490.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1377, allocations: 160.4 kB / 490.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.705e-05/0.1378, allocations: 94.64 kB / 491 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.1378, allocations: 4 kB / 491 MB, free: 11.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.138, allocations: 338.8 kB / 491.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.1382, allocations: 111.9 kB / 491.4 MB, free: 11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.1385, allocations: 152.1 kB / 491.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.1387, allocations: 124.5 kB / 491.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1387, allocations: 0 / 491.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001089/0.1398, allocations: 0.5338 MB / 492.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1398, allocations: 4 kB / 492.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1399, allocations: 4 kB / 492.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009749/0.1408, allocations: 281.5 kB / 492.5 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.141, allocations: 35.92 kB / 492.5 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004027/0.145, allocations: 3.585 MB / 496.1 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.1453, allocations: 39.67 kB / 496.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.1453, allocations: 12 kB / 496.2 MB, free: 5.938 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.000173/0.1455, allocations: 145.8 kB / 496.3 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.189e-05/0.1455, allocations: 23.72 kB / 496.4 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.836e-05/0.1456, allocations: 34.86 kB / 496.4 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1456, allocations: 4 kB / 496.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/0.1456, allocations: 7.953 kB / 496.4 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.1456, allocations: 0 / 496.4 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.1473, allocations: 0.9332 MB / 497.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1473, allocations: 0 / 497.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.94e-05/0.1474, allocations: 15.94 kB / 497.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008867/0.1483, allocations: 281.4 kB / 497.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.1483, allocations: 8 kB / 497.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003866/0.1522, allocations: 3.59 MB / 0.4895 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.1522, allocations: 8.016 kB / 0.4895 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.1533, allocations: 0.5825 MB / 0.49 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.1534, allocations: 116.7 kB / 0.4902 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.1534, allocations: 8 kB / 0.4902 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.1537, allocations: 31.97 kB / 0.4902 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/0.1538, allocations: 39.94 kB / 0.4902 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.1538, allocations: 12 kB / 0.4902 GB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001688/0.154, allocations: 172.5 kB / 0.4904 GB, free: 15.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.154, allocations: 0 / 0.4904 GB, free: 15.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004486/0.1544, allocations: 99.91 kB / 0.4905 GB, free: 15.46 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.001396/0.1558, allocations: 1.116 MB / 0.4916 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.1569, allocations: 0.5833 MB / 0.4922 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.1569, allocations: 0 / 0.4922 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005797/0.1575, allocations: 449.2 kB / 0.4926 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.1578, allocations: 48.36 kB / 0.4926 GB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.1608, allocations: 2.378 MB / 0.495 GB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.1612, allocations: 0.7757 MB / 0.4957 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.1613, allocations: 22.28 kB / 0.4957 GB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.1614, allocations: 79.41 kB / 0.4958 GB, free: 9.82 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1614, allocations: 0 / 0.4958 GB, free: 9.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01829/0.1797, allocations: 6.358 MB / 0.502 GB, free: 3.676 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.18, allocations: 216 kB / 0.5022 GB, free: 3.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.08, allocations: 4 kB / 0.5022 GB, free: 3.43 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