Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 176.7 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.2 MB / 241 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009898/0.0009898, allocations: 95.48 kB / 292.1 MB, free: 10.71 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4022/0.4022, allocations: 44.21 MB / 387.5 MB, free: 38.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003809, allocations: 8 kB / 460 MB, free: 1.449 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4018/0.4022, allocations: 61.9 MB / 0.5096 GB, free: 37.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.5317, allocations: 88.74 MB / 0.5963 GB, free: 6.387 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.532, allocations: 87.91 kB / 0.5964 GB, free: 6.305 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01271/0.5447, allocations: 4.79 MB / 0.6011 GB, free: 1.508 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5447, allocations: 4 kB / 0.6011 GB, free: 1.504 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.385e-05/0.5448, allocations: 11.94 kB / 0.6011 GB, free: 1.492 MB / 410.7 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.001047/0.5458, allocations: 0.5885 MB / 0.6017 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5459, allocations: 8.219 kB / 0.6017 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.546, allocations: 66.47 kB / 0.6017 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.34e-05/0.5461, allocations: 39.53 kB / 0.6018 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.5465, allocations: 260.7 kB / 0.602 GB, free: 452 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.5465, allocations: 24.52 kB / 0.602 GB, free: 428 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.5466, allocations: 28 kB / 0.6021 GB, free: 400 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006356/0.5472, allocations: 332.5 kB / 0.6024 GB, free: 48 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.5473, allocations: 4 kB / 0.6024 GB, free: 44 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.5473, allocations: 12 kB / 0.6024 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.5473, allocations: 4 kB / 0.6024 GB, free: 28 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.5479, allocations: 258.1 kB / 0.6026 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.5501, allocations: 1.287 MB / 0.6039 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007789/0.5509, allocations: 0.4947 MB / 0.6044 GB, free: 13.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.5509, allocations: 4.234 kB / 0.6044 GB, free: 13.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.5509, allocations: 34.8 kB / 0.6044 GB, free: 13.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 5e-06/0.5509, allocations: 3.984 kB / 0.6044 GB, free: 13.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.003051/0.554, allocations: 1.168 MB / 0.6056 GB, free: 12.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.5541, allocations: 51.41 kB / 0.6056 GB, free: 12.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/0.5543, allocations: 216.2 kB / 0.6058 GB, free: 12.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.5544, allocations: 29.7 kB / 0.6058 GB, free: 12.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.5545, allocations: 168.4 kB / 0.606 GB, free: 12.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.88e-05/0.5546, allocations: 86.73 kB / 0.6061 GB, free: 12.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.331e-05/0.5546, allocations: 8 kB / 0.6061 GB, free: 12.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.5548, allocations: 334.8 kB / 0.6064 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.555, allocations: 112.5 kB / 0.6065 GB, free: 11.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.5553, allocations: 143.6 kB / 0.6067 GB, free: 11.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.5555, allocations: 116.5 kB / 0.6068 GB, free: 11.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5555, allocations: 0 / 0.6068 GB, free: 11.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001111/0.5567, allocations: 0.5182 MB / 0.6073 GB, free: 10.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.5567, allocations: 8 kB / 0.6073 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5567, allocations: 0 / 0.6073 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009931/0.5577, allocations: 277.5 kB / 0.6076 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.5579, allocations: 35.92 kB / 0.6076 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00448/0.5624, allocations: 3.574 MB / 0.6111 GB, free: 6.625 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.5626, allocations: 31.73 kB / 0.6111 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.5627, allocations: 12 kB / 0.6111 GB, free: 6.582 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (19): * Single equations (assignments): 17 * 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.0002142/0.5629, allocations: 145.7 kB / 0.6113 GB, free: 6.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.091e-05/0.563, allocations: 23.72 kB / 0.6113 GB, free: 6.406 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.364e-05/0.563, allocations: 38.92 kB / 0.6113 GB, free: 6.371 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.5631, allocations: 0 / 0.6113 GB, free: 6.371 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.5631, allocations: 4 kB / 0.6113 GB, free: 6.367 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.5631, allocations: 3.984 kB / 0.6113 GB, free: 6.363 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.5649, allocations: 0.9484 MB / 0.6123 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.5649, allocations: 0 / 0.6123 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.23e-05/0.565, allocations: 23.98 kB / 0.6123 GB, free: 5.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000905/0.5659, allocations: 277.5 kB / 0.6125 GB, free: 5.051 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.5659, allocations: 4 kB / 0.6125 GB, free: 5.047 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004111/0.57, allocations: 3.567 MB / 0.616 GB, free: 1.215 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5701, allocations: 80 / 0.616 GB, free: 1.215 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.5712, allocations: 0.5836 MB / 0.6166 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.5714, allocations: 124.7 kB / 0.6167 GB, free: 480 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.5715, allocations: 4 kB / 0.6167 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.5717, allocations: 43.94 kB / 0.6168 GB, free: 432 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.665e-05/0.5718, allocations: 31.94 kB / 0.6168 GB, free: 400 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.5718, allocations: 4 kB / 0.6168 GB, free: 396 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001842/0.572, allocations: 172.5 kB / 0.617 GB, free: 224 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.572, allocations: 0 / 0.617 GB, free: 224 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005042/0.5725, allocations: 107.8 kB / 0.6171 GB, free: 116 kB / 426.7 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.001572/0.5741, allocations: 1.136 MB / 0.6182 GB, free: 14.94 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.5753, allocations: 0.5674 MB / 0.6187 GB, free: 14.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5753, allocations: 0 / 0.6187 GB, free: 14.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.576, allocations: 445.3 kB / 0.6191 GB, free: 13.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.5764, allocations: 52.33 kB / 0.6192 GB, free: 13.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/0.5797, allocations: 2.067 MB / 0.6212 GB, free: 11.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.58, allocations: 0.7718 MB / 0.622 GB, free: 10.89 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.5802, allocations: 22.3 kB / 0.622 GB, free: 10.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.5803, allocations: 71.41 kB / 0.6221 GB, free: 10.8 MB / 442.7 MB Notification: Performance of SimCode: time 3e-07/0.5803, allocations: 0 / 0.6221 GB, free: 10.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.6044, allocations: 6.439 MB / 0.6283 GB, free: 4.586 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.6047, allocations: 220.8 kB / 0.6286 GB, free: 4.34 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.557, allocations: 3.938 kB / 0.6286 GB, free: 4.336 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat does not exist to compare? outputFormat=mat