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.001072/0.001072, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008764/0.0008766, allocations: 85.12 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1751/0.1751, allocations: 45.15 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.603e-05/2.606e-05, allocations: 3.984 kB / 460.5 MB, free: 69.96 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.09989, allocations: 63.24 MB / 0.5115 GB, free: 6.73 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3372/0.4371, allocations: 89.75 MB / 0.5991 GB, free: 4.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.4373, allocations: 76.14 kB / 0.5992 GB, free: 4.121 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01186/0.4492, allocations: 4.854 MB / 0.6039 GB, free: 15.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4493, allocations: 2.297 kB / 0.6039 GB, free: 15.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.4493, allocations: 8 kB / 0.6039 GB, free: 15.94 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.0007331/0.45, allocations: 0.5693 MB / 0.6045 GB, free: 15.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.4501, allocations: 11.97 kB / 0.6045 GB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.824e-05/0.4501, allocations: 62.92 kB / 0.6045 GB, free: 15.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.874e-05/0.4502, allocations: 39.61 kB / 0.6046 GB, free: 15.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.4505, allocations: 263.5 kB / 0.6048 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.4505, allocations: 15.06 kB / 0.6049 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.4506, allocations: 33.8 kB / 0.6049 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004206/0.451, allocations: 296.5 kB / 0.6052 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.451, allocations: 0 / 0.6052 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.451, allocations: 15 kB / 0.6052 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.451, allocations: 12 kB / 0.6052 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.4514, allocations: 204.4 kB / 0.6054 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.4532, allocations: 1.298 MB / 0.6067 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/0.4537, allocations: 434.9 kB / 0.6071 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001894/0.4539, allocations: 138.1 kB / 0.6072 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.4539, allocations: 240 / 0.6072 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.454, allocations: 38.23 kB / 0.6072 GB, free: 12.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.162e-06/0.454, allocations: 0 / 0.6072 GB, free: 12.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.000845/0.4548, allocations: 414.8 kB / 0.6076 GB, free: 12.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.4549, allocations: 55.41 kB / 0.6077 GB, free: 12.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.4551, allocations: 213.8 kB / 0.6079 GB, free: 12.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.4551, allocations: 33.58 kB / 0.6079 GB, free: 12.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.4552, allocations: 164.6 kB / 0.6081 GB, free: 12.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.894e-05/0.4553, allocations: 93.58 kB / 0.6082 GB, free: 12.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.4553, allocations: 3.562 kB / 0.6082 GB, free: 12.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4554, allocations: 337.1 kB / 0.6085 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4555, allocations: 78.88 kB / 0.6086 GB, free: 11.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.4557, allocations: 109.4 kB / 0.6087 GB, free: 11.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.4558, allocations: 83.33 kB / 0.6088 GB, free: 11.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4558, allocations: 0 / 0.6088 GB, free: 11.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008319/0.4566, allocations: 442.9 kB / 0.6092 GB, free: 11.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.4567, allocations: 4 kB / 0.6092 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4567, allocations: 3.984 kB / 0.6092 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008897/0.4576, allocations: 237.6 kB / 0.6094 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.4577, allocations: 23.98 kB / 0.6094 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/0.4606, allocations: 3.267 MB / 0.6126 GB, free: 7.797 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.4608, allocations: 35.02 kB / 0.6127 GB, free: 7.766 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.4608, allocations: 7.938 kB / 0.6127 GB, free: 7.762 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 9.867e-05/0.4609, allocations: 115.9 kB / 0.6128 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.441e-05/0.461, allocations: 31.62 kB / 0.6128 GB, free: 7.617 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.773e-05/0.4611, allocations: 39.92 kB / 0.6128 GB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.4611, allocations: 7.938 kB / 0.6128 GB, free: 7.594 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.4611, allocations: 3.953 kB / 0.6129 GB, free: 7.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4611, allocations: 0 / 0.6129 GB, free: 7.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.4625, allocations: 0.8532 MB / 0.6137 GB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.4625, allocations: 11.98 kB / 0.6137 GB, free: 6.828 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.721e-05/0.4626, allocations: 12 kB / 0.6137 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007366/0.4633, allocations: 234.1 kB / 0.6139 GB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.4634, allocations: 3.188 kB / 0.6139 GB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002909/0.4663, allocations: 3.266 MB / 0.6171 GB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4663, allocations: 3.953 kB / 0.6171 GB, free: 3.406 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008028/0.4671, allocations: 0.491 MB / 0.6176 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.4672, allocations: 127.2 kB / 0.6177 GB, free: 2.844 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.4672, allocations: 3.812 kB / 0.6177 GB, free: 2.844 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.4675, allocations: 34.86 kB / 0.6178 GB, free: 2.812 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.723e-05/0.4676, allocations: 35.33 kB / 0.6178 GB, free: 2.781 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.4676, allocations: 7.438 kB / 0.6178 GB, free: 2.777 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001381/0.4677, allocations: 172.3 kB / 0.618 GB, free: 2.633 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4677, allocations: 0 / 0.618 GB, free: 2.633 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003873/0.4681, allocations: 106.9 kB / 0.6181 GB, free: 2.539 MB / 410.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.001034/0.4692, allocations: 1.045 MB / 0.6191 GB, free: 1.551 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007064/0.4699, allocations: 0.5048 MB / 0.6196 GB, free: 1.113 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4699, allocations: 4.125 kB / 0.6196 GB, free: 1.109 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000448/0.4704, allocations: 412 kB / 0.62 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.4707, allocations: 51.61 kB / 0.62 GB, free: 0.707 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006876/0.4714, allocations: 398.2 kB / 0.6204 GB, free: 352 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.4717, allocations: 0.7718 MB / 0.6212 GB, free: 15.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.911e-05/0.4718, allocations: 26.06 kB / 0.6212 GB, free: 15.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.769e-05/0.4719, allocations: 67.73 kB / 0.6213 GB, free: 15.5 MB / 426.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4719, allocations: 0 / 0.6213 GB, free: 15.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/0.4896, allocations: 6.452 MB / 0.6276 GB, free: 9.27 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.4898, allocations: 183.8 kB / 0.6277 GB, free: 9.047 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.774/2.264, allocations: 0 / 0.6277 GB, free: 9.047 MB / 426.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