Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009141/0.000914, allocations: 95.47 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008701/0.0008702, allocations: 181.1 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 223.2 MB / 241.8 MB, free: 396 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2877/0.2877, allocations: 44.23 MB / 337.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005377/0.0005377, allocations: 8.625 kB / 409.6 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.157, allocations: 61.91 MB / 471.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001911/0.159, allocations: 1.151 MB / 472.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007581/0.1598, allocations: 387.5 kB / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.531e-05/0.1599, allocations: 0 / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.679e-05/0.1599, allocations: 0 / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.089e-05/0.16, allocations: 7.984 kB / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.1602, allocations: 11.98 kB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.08e-05/0.1602, allocations: 31.84 kB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.509e-05/0.1603, allocations: 0 / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.77e-05/0.1605, allocations: 15.97 kB / 473.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.185e-05/0.1605, allocations: 15.92 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.1606, allocations: 4 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.369e-05/0.1606, allocations: 0 / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.278e-05/0.1606, allocations: 7.875 kB / 473.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.029e-05/0.1606, allocations: 37.7 kB / 473.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.707e-05/0.1607, allocations: 23.94 kB / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1607, allocations: 0 / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1607, allocations: 0 / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1607, allocations: 0 / 473.2 MB, free: 11.98 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004897/0.1612, allocations: 343.5 kB / 473.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.1613, allocations: 12.02 kB / 473.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.593e-05/0.1613, allocations: 38.56 kB / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.91e-05/0.1614, allocations: 0 / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.1615, allocations: 170.9 kB / 473.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1615, allocations: 4 kB / 473.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.1616, allocations: 3.953 kB / 473.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.1617, allocations: 63.33 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.1617, allocations: 0 / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.1618, allocations: 4 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1618, allocations: 4 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.1619, allocations: 23.98 kB / 473.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004209/0.1623, allocations: 264.9 kB / 474.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.316e-05/0.1624, allocations: 34.52 kB / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.1624, allocations: 8.047 kB / 474.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.1625, allocations: 34.55 kB / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1625, allocations: 0 / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002604/0.1628, allocations: 65.81 kB / 474.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.1628, allocations: 85.09 kB / 474.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.1629, allocations: 102.1 kB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1629, allocations: 29.69 kB / 474.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.098e-05/0.163, allocations: 95.98 kB / 474.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.163, allocations: 0 / 474.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.163, allocations: 0 / 474.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1631, allocations: 318.8 kB / 474.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.27e-05/0.1632, allocations: 19.98 kB / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-05/0.1633, allocations: 25.7 kB / 474.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.796e-05/0.1633, allocations: 8 kB / 474.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1633, allocations: 0 / 474.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001388/0.1635, allocations: 73.53 kB / 475 MB, free: 9.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1635, allocations: 15.91 kB / 475 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1635, allocations: 0 / 475 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1635, allocations: 4 kB / 475 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.466e-05/0.1636, allocations: 4 kB / 475 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.1636, allocations: 15.98 kB / 475 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.177e-05/0.1637, allocations: 8 kB / 475.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.1637, allocations: 0 / 475.1 MB, free: 9.902 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.172e-05/0.1638, allocations: 114.4 kB / 475.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.1638, allocations: 7.938 kB / 475.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.1639, allocations: 15.48 kB / 475.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1639, allocations: 0 / 475.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1639, allocations: 0 / 475.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.1639, allocations: 0 / 475.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.164, allocations: 157.7 kB / 475.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1641, allocations: 0 / 475.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.011e-05/0.1641, allocations: 4 kB / 475.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.1641, allocations: 7.953 kB / 475.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.1641, allocations: 8 kB / 475.4 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1641, allocations: 3.984 kB / 475.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1641, allocations: 0 / 475.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.1643, allocations: 151.4 kB / 475.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.1644, allocations: 77.11 kB / 475.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.1644, allocations: 7.953 kB / 475.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.1645, allocations: 16.02 kB / 475.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.111e-05/0.1646, allocations: 11.98 kB / 475.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1646, allocations: 0 / 475.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.737e-05/0.1646, allocations: 83.27 kB / 475.7 MB, free: 9.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1646, allocations: 0 / 475.7 MB, free: 9.156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.1649, allocations: 12 kB / 475.7 MB, free: 9.145 MB / 350.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 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004564/0.1653, allocations: 0.6812 MB / 476.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.1655, allocations: 31.92 kB / 476.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1655, allocations: 4.031 kB / 476.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.99e-05/0.1656, allocations: 19.98 kB / 476.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001499/0.1657, allocations: 3.953 kB / 476.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004401/0.1662, allocations: 170.1 kB / 476.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.1664, allocations: 0.6849 MB / 477.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.934e-05/0.1665, allocations: 0 / 477.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.412e-05/0.1665, allocations: 15.38 kB / 477.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1665, allocations: 4 kB / 477.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0111/0.1777, allocations: 1.196 MB / 478.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.1779, allocations: 169.3 kB / 478.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/1.794, allocations: 0 / 478.7 MB, free: 6.105 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat