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.001668/0.001668, allocations: 179.7 kB / 14.15 MB, free: 1.176 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.581/1.581, allocations: 221.3 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 92.03 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2066/0.2066, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.971e-05, allocations: 7.875 kB / 451.9 MB, free: 9.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1762, allocations: 61.91 MB / 0.5018 GB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4653/0.6416, allocations: 88.67 MB / 0.5884 GB, free: 0.625 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.6419, allocations: 79.95 kB / 0.5885 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01272/0.6546, allocations: 4.807 MB / 0.5932 GB, free: 11.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.6547, allocations: 0 / 0.5932 GB, free: 11.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.72e-05/0.6547, allocations: 4 kB / 0.5932 GB, free: 11.73 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.0009086/0.6556, allocations: 0.5634 MB / 0.5937 GB, free: 11.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.6557, allocations: 12.03 kB / 0.5937 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.21e-05/0.6558, allocations: 62.53 kB / 0.5938 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.85e-05/0.6559, allocations: 31.62 kB / 0.5938 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.6562, allocations: 262.5 kB / 0.5941 GB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.6563, allocations: 24.52 kB / 0.5941 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.28e-05/0.6563, allocations: 24 kB / 0.5941 GB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005302/0.6569, allocations: 304.5 kB / 0.5944 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.6569, allocations: 0 / 0.5944 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.6569, allocations: 12 kB / 0.5944 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.657, allocations: 8 kB / 0.5944 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003533/0.6573, allocations: 206.2 kB / 0.5946 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.6595, allocations: 1.292 MB / 0.5959 GB, free: 8.762 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006361/0.6601, allocations: 435.4 kB / 0.5963 GB, free: 8.293 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.6604, allocations: 149.2 kB / 0.5964 GB, free: 8.145 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.6604, allocations: 4.234 kB / 0.5964 GB, free: 8.141 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.6604, allocations: 34.8 kB / 0.5965 GB, free: 8.098 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/0.6605, allocations: 0 / 0.5965 GB, free: 8.098 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.000957/0.6614, allocations: 414.5 kB / 0.5969 GB, free: 7.684 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.6615, allocations: 51.41 kB / 0.5969 GB, free: 7.621 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.6617, allocations: 209.1 kB / 0.5971 GB, free: 7.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.6617, allocations: 33.7 kB / 0.5972 GB, free: 7.371 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.6618, allocations: 168.1 kB / 0.5973 GB, free: 7.203 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.236e-05/0.6619, allocations: 90.66 kB / 0.5974 GB, free: 7.113 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.6619, allocations: 4 kB / 0.5974 GB, free: 7.109 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.6621, allocations: 334.8 kB / 0.5977 GB, free: 6.773 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.6622, allocations: 76.56 kB / 0.5978 GB, free: 6.695 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.6624, allocations: 111.6 kB / 0.5979 GB, free: 6.578 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.6626, allocations: 95.88 kB / 0.598 GB, free: 6.484 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.6626, allocations: 0 / 0.598 GB, free: 6.484 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009172/0.6635, allocations: 442.8 kB / 0.5984 GB, free: 6.039 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.6635, allocations: 9.094 kB / 0.5984 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.6635, allocations: 0 / 0.5984 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008761/0.6644, allocations: 229.5 kB / 0.5986 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.6646, allocations: 27.98 kB / 0.5987 GB, free: 5.773 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003409/0.668, allocations: 3.269 MB / 0.6019 GB, free: 2.234 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.6682, allocations: 31.78 kB / 0.6019 GB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.6683, allocations: 15.98 kB / 0.6019 GB, free: 2.188 MB / 410.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 () * 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.0001198/0.6684, allocations: 120.9 kB / 0.602 GB, free: 2.062 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.125e-05/0.6685, allocations: 23.72 kB / 0.602 GB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.576e-05/0.6686, allocations: 34.94 kB / 0.6021 GB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.6686, allocations: 7.984 kB / 0.6021 GB, free: 2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.6686, allocations: 4 kB / 0.6021 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.6686, allocations: 0 / 0.6021 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.6701, allocations: 0.8591 MB / 0.6029 GB, free: 1.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.6701, allocations: 0 / 0.6029 GB, free: 1.074 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.387e-05/0.6702, allocations: 27.86 kB / 0.603 GB, free: 1.047 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007746/0.671, allocations: 229.5 kB / 0.6032 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.671, allocations: 4 kB / 0.6032 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/0.6743, allocations: 3.265 MB / 0.6064 GB, free: 13.28 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6743, allocations: 4.031 kB / 0.6064 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008654/0.6752, allocations: 0.4967 MB / 0.6069 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.6753, allocations: 116.7 kB / 0.607 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.6753, allocations: 8 kB / 0.607 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.6756, allocations: 43.92 kB / 0.607 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.242e-05/0.6757, allocations: 27.95 kB / 0.607 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.6757, allocations: 12 kB / 0.6071 GB, free: 12.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001756/0.6759, allocations: 169.4 kB / 0.6072 GB, free: 12.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6759, allocations: 0 / 0.6072 GB, free: 12.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000469/0.6764, allocations: 111.8 kB / 0.6073 GB, free: 12.26 MB / 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 () * 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.001204/0.6776, allocations: 1.042 MB / 0.6083 GB, free: 11.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009033/0.6785, allocations: 0.5008 MB / 0.6088 GB, free: 10.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.6785, allocations: 4.125 kB / 0.6088 GB, free: 10.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005136/0.6791, allocations: 416.8 kB / 0.6092 GB, free: 10.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.6795, allocations: 44.41 kB / 0.6093 GB, free: 10.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008352/0.6803, allocations: 393.7 kB / 0.6097 GB, free: 9.758 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.6807, allocations: 0.7718 MB / 0.6104 GB, free: 8.953 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.6808, allocations: 22.06 kB / 0.6104 GB, free: 8.934 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.6809, allocations: 75.41 kB / 0.6105 GB, free: 8.859 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.6809, allocations: 0 / 0.6105 GB, free: 8.859 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.7028, allocations: 6.447 MB / 0.6168 GB, free: 2.578 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.703, allocations: 190.8 kB / 0.617 GB, free: 2.352 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/2.69, allocations: 0 / 0.617 GB, free: 2.352 MB / 426.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