Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009177/0.0009177, allocations: 93.7 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009764/0.0009766, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2206/0.2206, allocations: 45.92 MB / 344 MB, free: 12.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002939, allocations: 8 kB / 418.1 MB, free: 20.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1561, allocations: 63.45 MB / 481.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001724/0.1578, allocations: 1.174 MB / 482.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007043/0.1585, allocations: 427.5 kB / 483.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.741e-05/0.1586, allocations: 0 / 483.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.1586, allocations: 3.938 kB / 483.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.339e-05/0.1587, allocations: 7.938 kB / 483.1 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.1589, allocations: 19.91 kB / 483.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.487e-05/0.1589, allocations: 19.97 kB / 483.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.585e-05/0.159, allocations: 8 kB / 483.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.1592, allocations: 23.91 kB / 483.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.215e-05/0.1592, allocations: 15.92 kB / 483.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.1593, allocations: 0 / 483.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.968e-05/0.1593, allocations: 4 kB / 483.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.849e-06/0.1593, allocations: 0 / 483.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.896e-05/0.1594, allocations: 33.7 kB / 483.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.243e-05/0.1594, allocations: 27.94 kB / 483.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1594, allocations: 0 / 483.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1595, allocations: 0 / 483.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1595, allocations: 4 kB / 483.3 MB, free: 3.535 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.0004723/0.1599, allocations: 351.5 kB / 483.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.16, allocations: 8.031 kB / 483.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.937e-05/0.1601, allocations: 34.5 kB / 483.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.1602, allocations: 15.98 kB / 483.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.1603, allocations: 170.9 kB / 483.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.1604, allocations: 12 kB / 483.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.1604, allocations: 0 / 483.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001627/0.1606, allocations: 59.39 kB / 483.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.1606, allocations: 0 / 483.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.1606, allocations: 0 / 483.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1606, allocations: 0 / 483.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.465e-05/0.1607, allocations: 31.92 kB / 483.9 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004144/0.1611, allocations: 264.9 kB / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.245e-05/0.1612, allocations: 30.58 kB / 484.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.1612, allocations: 0 / 484.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.1613, allocations: 34.56 kB / 484.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.1613, allocations: 4.062 kB / 484.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002453/0.1615, allocations: 69.61 kB / 484.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.1616, allocations: 77.11 kB / 484.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.778e-05/0.1617, allocations: 114 kB / 484.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.1617, allocations: 29.7 kB / 484.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.1618, allocations: 92.03 kB / 484.6 MB, free: 1.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.1618, allocations: 4 kB / 484.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.1618, allocations: 0 / 484.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1619, allocations: 318.8 kB / 484.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.862e-05/0.162, allocations: 15.98 kB / 485 MB, free: 1.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.398e-05/0.162, allocations: 33.7 kB / 485 MB, free: 1.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.504e-05/0.1621, allocations: 8 kB / 485 MB, free: 1.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1621, allocations: 3.938 kB / 485 MB, free: 1.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001357/0.1622, allocations: 77.59 kB / 485.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.1623, allocations: 8 kB / 485.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1623, allocations: 0 / 485.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1623, allocations: 0 / 485.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.552e-05/0.1624, allocations: 8.031 kB / 485.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.1624, allocations: 0 / 485.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.069e-05/0.1624, allocations: 11.98 kB / 485.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.1624, allocations: 4 kB / 485.1 MB, free: 1.441 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 8.259e-05/0.1625, allocations: 109.8 kB / 485.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.1626, allocations: 11.94 kB / 485.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.229e-05/0.1626, allocations: 7.516 kB / 485.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1626, allocations: 4 kB / 485.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1626, allocations: 0 / 485.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1626, allocations: 0 / 485.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.1628, allocations: 169.6 kB / 485.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1628, allocations: 0 / 485.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.855e-05/0.1628, allocations: 7.938 kB / 485.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1628, allocations: 0 / 485.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.1629, allocations: 0 / 485.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1629, allocations: 0 / 485.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.1629, allocations: 4 kB / 485.4 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.163, allocations: 159.4 kB / 485.6 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/0.1631, allocations: 77.11 kB / 485.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.1631, allocations: 0 / 485.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.717e-05/0.1632, allocations: 11.98 kB / 485.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.1633, allocations: 16.02 kB / 485.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.1633, allocations: 0 / 485.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.555e-05/0.1633, allocations: 87.27 kB / 485.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1633, allocations: 0 / 485.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002162/0.1636, allocations: 8 kB / 485.8 MB, free: 0.6914 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.0004143/0.164, allocations: 0.6933 MB / 486.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001398/0.1641, allocations: 27.98 kB / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1641, allocations: 0 / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.673e-05/0.1642, allocations: 12 kB / 486.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.1643, allocations: 18.05 kB / 486.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.1648, allocations: 162.2 kB / 486.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.165, allocations: 0.6887 MB / 487.4 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3e-05/0.165, allocations: 4 kB / 487.4 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.1651, allocations: 11.44 kB / 487.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1651, allocations: 4 kB / 487.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01058/0.1757, allocations: 1.183 MB / 488.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/0.1759, allocations: 164.3 kB / 488.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.82, allocations: 0 / 488.7 MB, free: 13.66 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat