Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002427/0.002431, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.238/2.238, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001147, allocations: 98.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3075/0.3075, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004883/0.0004883, allocations: 12 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1329, allocations: 58.86 MB / 490.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002164/0.1352, allocations: 1.148 MB / 491.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009878/0.1362, allocations: 432.3 kB / 491.9 MB, free: 7.664 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.655e-05/0.1363, allocations: 4 kB / 491.9 MB, free: 7.66 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.1363, allocations: 3.938 kB / 491.9 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.685e-05/0.1364, allocations: 7.984 kB / 491.9 MB, free: 7.648 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.1366, allocations: 11.98 kB / 491.9 MB, free: 7.637 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 8.055e-05/0.1366, allocations: 19.97 kB / 491.9 MB, free: 7.617 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.577e-05/0.1368, allocations: 3.984 kB / 491.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.1369, allocations: 15.94 kB / 492 MB, free: 7.598 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.004e-05/0.137, allocations: 15.92 kB / 492 MB, free: 7.582 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.137, allocations: 8 kB / 492 MB, free: 7.574 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.281e-05/0.137, allocations: 0 / 492 MB, free: 7.574 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.942e-05/0.1371, allocations: 7.969 kB / 492 MB, free: 7.566 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.067e-05/0.1371, allocations: 29.7 kB / 492 MB, free: 7.531 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 7.587e-05/0.1372, allocations: 15.97 kB / 492 MB, free: 7.516 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1372, allocations: 0 / 492 MB, free: 7.516 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1372, allocations: 0 / 492 MB, free: 7.516 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1372, allocations: 0 / 492 MB, free: 7.516 MB / 330.7 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.0005668/0.1378, allocations: 351.5 kB / 492.4 MB, free: 7.125 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.1379, allocations: 8.031 kB / 492.4 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.1379, allocations: 38.5 kB / 492.4 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/0.138, allocations: 7.891 kB / 492.4 MB, free: 7.062 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.1381, allocations: 174.9 kB / 492.6 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.1382, allocations: 0 / 492.6 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.1382, allocations: 0 / 492.6 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.1384, allocations: 63.41 kB / 492.7 MB, free: 6.777 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.1384, allocations: 7.984 kB / 492.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.1385, allocations: 0 / 492.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1385, allocations: 0 / 492.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.1386, allocations: 23.98 kB / 492.7 MB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005358/0.1392, allocations: 268.8 kB / 492.9 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.1393, allocations: 34.56 kB / 493 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.1394, allocations: 0 / 493 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.1394, allocations: 34.56 kB / 493 MB, free: 6.348 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.1394, allocations: 0 / 493 MB, free: 6.348 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003736/0.1398, allocations: 73.67 kB / 493.1 MB, free: 6.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.1399, allocations: 81.06 kB / 493.2 MB, free: 6.172 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.14, allocations: 109.8 kB / 493.3 MB, free: 6.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.1401, allocations: 25.7 kB / 493.3 MB, free: 6.023 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.864e-05/0.1402, allocations: 154.6 kB / 493.5 MB, free: 5.871 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.1402, allocations: 7.906 kB / 493.5 MB, free: 5.863 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.67e-06/0.1402, allocations: 0 / 493.5 MB, free: 5.863 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1404, allocations: 319 kB / 493.8 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.1405, allocations: 12 kB / 493.8 MB, free: 5.531 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.1406, allocations: 33.69 kB / 493.8 MB, free: 5.492 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.383e-05/0.1407, allocations: 8 kB / 493.8 MB, free: 5.484 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1407, allocations: 3.984 kB / 493.8 MB, free: 5.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002338/0.1409, allocations: 69.66 kB / 493.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.141, allocations: 11.44 kB / 493.9 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.141, allocations: 0 / 493.9 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.141, allocations: 0 / 493.9 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.1411, allocations: 7.984 kB / 493.9 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.964e-06/0.1412, allocations: 0 / 493.9 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.1413, allocations: 11.95 kB / 493.9 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.1413, allocations: 4 kB / 493.9 MB, free: 5.375 MB / 330.7 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 0.0001253/0.1414, allocations: 121.8 kB / 494 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/0.1415, allocations: 7.906 kB / 494.1 MB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.408e-05/0.1415, allocations: 3.531 kB / 494.1 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1415, allocations: 3.938 kB / 494.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1416, allocations: 0 / 494.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1416, allocations: 0 / 494.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.1418, allocations: 173.6 kB / 494.2 MB, free: 5.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1418, allocations: 0 / 494.2 MB, free: 5.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.604e-05/0.1419, allocations: 11.94 kB / 494.2 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.1419, allocations: 3.984 kB / 494.2 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.142, allocations: 0 / 494.2 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.142, allocations: 0 / 494.2 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.142, allocations: 3.938 kB / 494.3 MB, free: 4.992 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.1423, allocations: 155.5 kB / 494.4 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.578e-05/0.1423, allocations: 81.09 kB / 494.5 MB, free: 4.727 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.1424, allocations: 0 / 494.5 MB, free: 4.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.1425, allocations: 12 kB / 494.5 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.295e-05/0.1426, allocations: 7.984 kB / 494.5 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.1426, allocations: 3.984 kB / 494.5 MB, free: 4.703 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.998e-05/0.1427, allocations: 87.28 kB / 494.6 MB, free: 4.617 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1427, allocations: 0 / 494.6 MB, free: 4.617 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003208/0.143, allocations: 11.94 kB / 494.6 MB, free: 4.605 MB / 330.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 (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.0006491/0.1437, allocations: 0.6851 MB / 495.3 MB, free: 3.891 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002324/0.1439, allocations: 32.02 kB / 495.3 MB, free: 3.859 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.144, allocations: 0 / 495.3 MB, free: 3.859 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.481e-05/0.1441, allocations: 15.98 kB / 495.3 MB, free: 3.844 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.1443, allocations: 4 kB / 495.3 MB, free: 3.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005906/0.1449, allocations: 199.8 kB / 495.5 MB, free: 3.602 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.1452, allocations: 0.6809 MB / 496.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.438e-05/0.1453, allocations: 19.42 kB / 496.2 MB, free: 2.875 MB / 330.7 MB Notification: Performance of SimCode: time 1.513e-06/0.1453, allocations: 0 / 496.2 MB, free: 2.875 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.402/2.547, allocations: 0.8634 MB / 497.1 MB, free: 2.012 MB / 330.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat