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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001546/0.001545, allocations: 197.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001113/0.001113, allocations: 110.3 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.512/0.512, allocations: 45.22 MB / 394.6 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003839, allocations: 8 kB / 468.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4504/0.4508, allocations: 63.24 MB / 0.5193 GB, free: 43.49 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.5753, allocations: 89.82 MB / 0.607 GB, free: 15.81 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.5756, allocations: 79.92 kB / 0.6071 GB, free: 15.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0137/0.5893, allocations: 4.857 MB / 0.6118 GB, free: 10.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5893, allocations: 0 / 0.6118 GB, free: 10.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.5894, allocations: 12 kB / 0.6118 GB, free: 10.89 MB / 426.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.0008797/0.5903, allocations: 0.5847 MB / 0.6124 GB, free: 10.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.5903, allocations: 8.031 kB / 0.6124 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.413e-05/0.5904, allocations: 74.47 kB / 0.6125 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.63e-05/0.5905, allocations: 31.62 kB / 0.6125 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.5908, allocations: 263.5 kB / 0.6127 GB, free: 9.844 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.5908, allocations: 24.56 kB / 0.6128 GB, free: 9.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.5909, allocations: 28 kB / 0.6128 GB, free: 9.793 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.5914, allocations: 320.5 kB / 0.6131 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.5914, allocations: 3.984 kB / 0.6131 GB, free: 9.457 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.5915, allocations: 16 kB / 0.6131 GB, free: 9.441 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.5915, allocations: 4 kB / 0.6131 GB, free: 9.438 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004857/0.592, allocations: 254.1 kB / 0.6134 GB, free: 9.191 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.594, allocations: 1.308 MB / 0.6146 GB, free: 7.805 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007142/0.5948, allocations: 491.9 kB / 0.6151 GB, free: 7.281 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.5948, allocations: 4.234 kB / 0.6151 GB, free: 7.277 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.5948, allocations: 38.8 kB / 0.6151 GB, free: 7.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 2.224e-06/0.5948, allocations: 0 / 0.6151 GB, free: 7.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.002852/0.5977, allocations: 1.163 MB / 0.6163 GB, free: 6.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.5978, allocations: 59.41 kB / 0.6163 GB, free: 5.949 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.598, allocations: 212.2 kB / 0.6165 GB, free: 5.734 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.598, allocations: 33.7 kB / 0.6166 GB, free: 5.695 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.218e-05/0.5981, allocations: 164.4 kB / 0.6167 GB, free: 5.531 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.441e-05/0.5982, allocations: 90.66 kB / 0.6168 GB, free: 5.441 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.207e-05/0.5982, allocations: 4 kB / 0.6168 GB, free: 5.438 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.5983, allocations: 330.8 kB / 0.6171 GB, free: 5.105 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.5986, allocations: 112.5 kB / 0.6172 GB, free: 4.992 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.5988, allocations: 139.6 kB / 0.6174 GB, free: 4.848 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.5991, allocations: 108.5 kB / 0.6175 GB, free: 4.742 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.5991, allocations: 4 kB / 0.6175 GB, free: 4.738 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001075/0.6002, allocations: 0.5182 MB / 0.618 GB, free: 4.207 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.6002, allocations: 4 kB / 0.618 GB, free: 4.203 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.6002, allocations: 0 / 0.618 GB, free: 4.203 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009835/0.6012, allocations: 293.4 kB / 0.6183 GB, free: 3.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.6014, allocations: 27.92 kB / 0.6183 GB, free: 3.883 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003969/0.6053, allocations: 3.57 MB / 0.6218 GB, free: 44 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.6056, allocations: 39.78 kB / 0.6218 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.6056, allocations: 8.156 kB / 0.6218 GB, free: 15.99 MB / 442.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.0002016/0.6058, allocations: 145.7 kB / 0.622 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.19e-05/0.6059, allocations: 27.72 kB / 0.622 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.486e-05/0.606, allocations: 30.88 kB / 0.622 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.606, allocations: 11.92 kB / 0.622 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.606, allocations: 7.953 kB / 0.622 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.606, allocations: 0 / 0.622 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.6077, allocations: 0.9427 MB / 0.623 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.6077, allocations: 0 / 0.623 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.565e-05/0.6078, allocations: 19.94 kB / 0.623 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008772/0.6087, allocations: 285.5 kB / 0.6233 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.6087, allocations: 4 kB / 0.6233 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003937/0.6127, allocations: 3.574 MB / 0.6268 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.6127, allocations: 0 / 0.6268 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.6138, allocations: 0.5828 MB / 0.6273 GB, free: 10.01 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.614, allocations: 120.7 kB / 0.6274 GB, free: 9.875 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.614, allocations: 4 kB / 0.6274 GB, free: 9.871 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.6143, allocations: 39.97 kB / 0.6275 GB, free: 9.832 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/0.6144, allocations: 31.94 kB / 0.6275 GB, free: 9.801 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.6144, allocations: 8 kB / 0.6275 GB, free: 9.793 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002242/0.6146, allocations: 172.5 kB / 0.6277 GB, free: 9.621 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6146, allocations: 3.938 kB / 0.6277 GB, free: 9.617 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005669/0.6152, allocations: 107.8 kB / 0.6278 GB, free: 9.512 MB / 442.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.001629/0.6168, allocations: 1.125 MB / 0.6289 GB, free: 8.352 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.6182, allocations: 0.5664 MB / 0.6294 GB, free: 7.762 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6182, allocations: 4.125 kB / 0.6294 GB, free: 7.758 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006335/0.6189, allocations: 453.6 kB / 0.6299 GB, free: 7.289 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.6192, allocations: 45.25 kB / 0.6299 GB, free: 7.246 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.6231, allocations: 2.081 MB / 0.6319 GB, free: 5.102 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/0.6236, allocations: 0.7718 MB / 0.6327 GB, free: 4.301 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.6237, allocations: 22.3 kB / 0.6327 GB, free: 4.281 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.6239, allocations: 75.41 kB / 0.6328 GB, free: 4.207 MB / 442.7 MB Notification: Performance of SimCode: time 9.61e-07/0.6239, allocations: 0 / 0.6328 GB, free: 4.207 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.6428, allocations: 6.461 MB / 0.6391 GB, free: 14 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/0.643, allocations: 205.2 kB / 0.6393 GB, free: 13.77 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.973/2.616, allocations: 4.062 kB / 0.6393 GB, free: 13.76 MB / 458.7 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