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.002039/0.002039, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.173/2.173, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 92.42 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2995/0.2995, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.977e-05/1.991e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4595/0.4596, allocations: 58.85 MB / 477.2 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1614/0.621, allocations: 84.39 MB / 0.5484 GB, free: 14.94 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.6214, allocations: 63.97 kB / 0.5485 GB, free: 14.88 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.003961/0.6253, allocations: 0.9356 MB / 0.5494 GB, free: 13.94 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.6254, allocations: 0 / 0.5494 GB, free: 13.94 MB / 395.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.6254, allocations: 0 / 0.5494 GB, free: 13.94 MB / 395.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.0004622/0.6259, allocations: 346.5 kB / 0.5497 GB, free: 13.56 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.6259, allocations: 8.031 kB / 0.5497 GB, free: 13.55 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.986e-05/0.626, allocations: 4.625 kB / 0.5497 GB, free: 13.55 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.6262, allocations: 174.9 kB / 0.5499 GB, free: 13.34 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.6262, allocations: 0 / 0.5499 GB, free: 13.34 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.6262, allocations: 4 kB / 0.5499 GB, free: 13.33 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.24e-05/0.6263, allocations: 8 kB / 0.5499 GB, free: 13.32 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.6265, allocations: 59.33 kB / 0.55 GB, free: 13.25 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.6265, allocations: 4 kB / 0.55 GB, free: 13.25 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.6265, allocations: 0 / 0.55 GB, free: 13.25 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.6266, allocations: 0 / 0.55 GB, free: 13.25 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004655/0.627, allocations: 241.5 kB / 0.5502 GB, free: 12.98 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.537e-05/0.6271, allocations: 22.58 kB / 0.5502 GB, free: 12.95 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.819e-05/0.6272, allocations: 16.92 kB / 0.5502 GB, free: 12.93 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.6272, allocations: 3.938 kB / 0.5502 GB, free: 12.92 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.6273, allocations: 30.56 kB / 0.5503 GB, free: 12.88 MB / 395.1 MB Notification: Performance of pre-optimization done (n=2): time 1.743e-06/0.6273, allocations: 0 / 0.5503 GB, free: 12.88 MB / 395.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001857/0.6275, allocations: 45.69 kB / 0.5503 GB, free: 12.83 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.6275, allocations: 77.11 kB / 0.5504 GB, free: 12.74 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.773e-05/0.6276, allocations: 101 kB / 0.5505 GB, free: 12.63 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.6277, allocations: 29.73 kB / 0.5505 GB, free: 12.6 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.066e-05/0.6278, allocations: 154.6 kB / 0.5506 GB, free: 12.45 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.6278, allocations: 7.906 kB / 0.5507 GB, free: 12.44 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.6278, allocations: 3.938 kB / 0.5507 GB, free: 12.43 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.628, allocations: 314.8 kB / 0.551 GB, free: 12.12 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.237e-05/0.628, allocations: 8 kB / 0.551 GB, free: 12.11 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.688e-05/0.6281, allocations: 17.72 kB / 0.551 GB, free: 12.09 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.826e-05/0.6281, allocations: 15.09 kB / 0.551 GB, free: 12.07 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.6281, allocations: 4.031 kB / 0.551 GB, free: 12.07 MB / 395.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001269/0.6283, allocations: 49.69 kB / 0.551 GB, free: 12.02 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.6283, allocations: 4 kB / 0.5511 GB, free: 12.01 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.6283, allocations: 0 / 0.5511 GB, free: 12.01 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.6283, allocations: 0 / 0.5511 GB, free: 12.01 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.6285, allocations: 4 kB / 0.5511 GB, free: 12.01 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.6285, allocations: 4 kB / 0.5511 GB, free: 12 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.6286, allocations: 11.98 kB / 0.5511 GB, free: 11.99 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-06/0.6286, allocations: 4 kB / 0.5511 GB, free: 11.99 MB / 395.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 () * 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.329e-05/0.6287, allocations: 104.9 kB / 0.5512 GB, free: 11.88 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001146/0.6289, allocations: 53.53 kB / 0.5512 GB, free: 11.82 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.6289, allocations: 4 kB / 0.5512 GB, free: 11.82 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.6289, allocations: 3.969 kB / 0.5512 GB, free: 11.81 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.629, allocations: 0 / 0.5512 GB, free: 11.81 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.629, allocations: 0 / 0.5512 GB, free: 11.81 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.629, allocations: 144 / 0.5512 GB, free: 11.81 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.6292, allocations: 146.2 kB / 0.5514 GB, free: 11.63 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.6292, allocations: 4.031 kB / 0.5514 GB, free: 11.63 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.892e-05/0.6293, allocations: 11.98 kB / 0.5514 GB, free: 11.62 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.6293, allocations: 0 / 0.5514 GB, free: 11.62 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.6293, allocations: 3.984 kB / 0.5514 GB, free: 11.61 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.6293, allocations: 0 / 0.5514 GB, free: 11.61 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6293, allocations: 0 / 0.5514 GB, free: 11.61 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001594/0.6295, allocations: 147.4 kB / 0.5515 GB, free: 11.45 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.846e-05/0.6296, allocations: 81.14 kB / 0.5516 GB, free: 11.36 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.6296, allocations: 4 kB / 0.5516 GB, free: 11.35 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.6298, allocations: 11.98 kB / 0.5516 GB, free: 11.34 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.6298, allocations: 7.922 kB / 0.5516 GB, free: 11.33 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.6298, allocations: 7.938 kB / 0.5516 GB, free: 11.32 MB / 395.1 MB Notification: Performance of sorting global known variables: time 5.854e-05/0.6299, allocations: 83.28 kB / 0.5517 GB, free: 11.24 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6299, allocations: 0 / 0.5517 GB, free: 11.24 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.6302, allocations: 4 kB / 0.5517 GB, free: 11.24 MB / 395.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) * 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.0005155/0.6308, allocations: 0.6759 MB / 0.5524 GB, free: 10.54 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001197/0.6309, allocations: 12 kB / 0.5524 GB, free: 10.52 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.6309, allocations: 0 / 0.5524 GB, free: 10.52 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 4.504e-05/0.631, allocations: 19.92 kB / 0.5524 GB, free: 10.5 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.6312, allocations: 8.031 kB / 0.5524 GB, free: 10.5 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.6316, allocations: 115.3 kB / 0.5525 GB, free: 10.34 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.632, allocations: 0.6846 MB / 0.5532 GB, free: 9.629 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.632, allocations: 19.42 kB / 0.5532 GB, free: 9.609 MB / 395.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6321, allocations: 0 / 0.5532 GB, free: 9.609 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.597/3.23, allocations: 0.8513 MB / 0.5541 GB, free: 8.762 MB / 395.1 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