Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_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.001106/0.001106, allocations: 97.53 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 170.4 kB / 16.56 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3338/0.3338, allocations: 43.55 MB / 314.5 MB, free: 9.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005864/0.0005866, allocations: 16 kB / 384 MB, free: 8.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1249, allocations: 58.86 MB / 442.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001847/0.1268, allocations: 1.156 MB / 444 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006695/0.1275, allocations: 424.3 kB / 444.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.05e-05/0.1275, allocations: 0 / 444.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.222e-05/0.1276, allocations: 7.922 kB / 444.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.427e-05/0.1276, allocations: 7.938 kB / 444.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000174/0.1278, allocations: 15.97 kB / 444.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.324e-05/0.1279, allocations: 19.98 kB / 444.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.415e-05/0.128, allocations: 7.984 kB / 444.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.068e-05/0.1281, allocations: 19.92 kB / 444.5 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.476e-05/0.1282, allocations: 11.92 kB / 444.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.1282, allocations: 0 / 444.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.278e-05/0.1282, allocations: 4 kB / 444.5 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.1282, allocations: 7.984 kB / 444.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.1283, allocations: 25.7 kB / 444.5 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 5.523e-05/0.1283, allocations: 24.25 kB / 444.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.1284, allocations: 0 / 444.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1284, allocations: 0 / 444.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.1284, allocations: 3.938 kB / 444.6 MB, free: 11.46 MB / 382.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.0004523/0.1288, allocations: 343.2 kB / 444.9 MB, free: 11.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1289, allocations: 8.031 kB / 444.9 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.1289, allocations: 30.56 kB / 444.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.156e-05/0.129, allocations: 19.86 kB / 445 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.1291, allocations: 171 kB / 445.1 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.1291, allocations: 7.938 kB / 445.1 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.1291, allocations: 0 / 445.1 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.1293, allocations: 55.41 kB / 445.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.1293, allocations: 0 / 445.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.1293, allocations: 0 / 445.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1293, allocations: 0 / 445.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.1295, allocations: 39.86 kB / 445.2 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000439/0.1299, allocations: 257 kB / 445.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.533e-05/0.13, allocations: 42.55 kB / 445.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.1301, allocations: 0 / 445.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.1301, allocations: 30.56 kB / 445.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 6.91e-07/0.1301, allocations: 0 / 445.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003286/0.1304, allocations: 81.53 kB / 445.6 MB, free: 10.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.1305, allocations: 81.23 kB / 445.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.1306, allocations: 113.8 kB / 445.8 MB, free: 10 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.1307, allocations: 25.7 kB / 445.8 MB, free: 9.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.986e-05/0.1307, allocations: 84.14 kB / 445.9 MB, free: 9.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.1308, allocations: 7.906 kB / 445.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/0.1308, allocations: 4 kB / 445.9 MB, free: 9.871 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.131, allocations: 314.8 kB / 446.2 MB, free: 9.555 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.348e-05/0.131, allocations: 12 kB / 446.3 MB, free: 9.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.46e-05/0.1311, allocations: 33.7 kB / 446.3 MB, free: 9.504 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.476e-05/0.1312, allocations: 11.98 kB / 446.3 MB, free: 9.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1312, allocations: 7.875 kB / 446.3 MB, free: 9.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000143/0.1314, allocations: 57.69 kB / 446.4 MB, free: 9.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1314, allocations: 8 kB / 446.4 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.1314, allocations: 4.031 kB / 446.4 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1314, allocations: 0 / 446.4 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.818e-05/0.1315, allocations: 11.94 kB / 446.4 MB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1316, allocations: 0 / 446.4 MB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.637e-05/0.1316, allocations: 15.98 kB / 446.4 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.1316, allocations: 0 / 446.4 MB, free: 9.383 MB / 382.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 0.0001268/0.1318, allocations: 117.8 kB / 446.5 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.1318, allocations: 11.91 kB / 446.5 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.416e-05/0.1318, allocations: 3.531 kB / 446.5 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.1319, allocations: 0 / 446.5 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1319, allocations: 7.891 kB / 446.5 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1319, allocations: 0 / 446.5 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.1321, allocations: 165.7 kB / 446.7 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1321, allocations: 0 / 446.7 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-05/0.1321, allocations: 11.92 kB / 446.7 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1322, allocations: 0 / 446.7 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.1322, allocations: 0 / 446.7 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1322, allocations: 4 kB / 446.7 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1322, allocations: 0 / 446.7 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001908/0.1324, allocations: 155.5 kB / 446.9 MB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.316e-05/0.1325, allocations: 81.02 kB / 446.9 MB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.1325, allocations: 0 / 446.9 MB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.496e-05/0.1326, allocations: 20.02 kB / 447 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.1326, allocations: 7.984 kB / 447 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.1326, allocations: 0 / 447 MB, free: 8.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.868e-05/0.1327, allocations: 87.28 kB / 447.1 MB, free: 8.633 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1327, allocations: 0 / 447.1 MB, free: 8.633 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002072/0.1329, allocations: 7.953 kB / 447.1 MB, free: 8.625 MB / 382.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.0005118/0.1334, allocations: 0.6851 MB / 447.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000163/0.1336, allocations: 31.97 kB / 447.8 MB, free: 7.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1336, allocations: 0 / 447.8 MB, free: 7.883 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.913e-05/0.1337, allocations: 19.97 kB / 447.8 MB, free: 7.863 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.1338, allocations: 7.938 kB / 447.8 MB, free: 7.855 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004168/0.1342, allocations: 162.2 kB / 448 MB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.1346, allocations: 0.6848 MB / 448.7 MB, free: 6.945 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.164e-05/0.1346, allocations: 12.23 kB / 448.7 MB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.1346, allocations: 15.42 kB / 448.7 MB, free: 6.922 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1346, allocations: 0 / 448.7 MB, free: 6.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04706/0.1817, allocations: 1.175 MB / 449.9 MB, free: 5.773 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.1819, allocations: 164.3 kB / 450 MB, free: 5.531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.016, allocations: 0 / 450 MB, free: 5.531 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat