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.0009231/0.0009231, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.159/1.159, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0006708/0.0006707, allocations: 92.92 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2678/0.2678, allocations: 43.57 MB / 363.1 MB, free: 52.24 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003482/0.0003482, allocations: 12 kB / 432.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08706/0.08742, allocations: 58.84 MB / 490.9 MB, free: 10.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001301/0.08876, allocations: 1.161 MB / 492.1 MB, free: 9.648 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005294/0.0893, allocations: 433.3 kB / 492.5 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.314e-05/0.08933, allocations: 0 / 492.5 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.326e-05/0.08936, allocations: 0 / 492.5 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.22e-05/0.0894, allocations: 7.938 kB / 492.5 MB, free: 9.211 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.08955, allocations: 7.984 kB / 492.5 MB, free: 9.203 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 6.196e-05/0.08962, allocations: 35.84 kB / 492.5 MB, free: 9.168 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.525e-05/0.0897, allocations: 8 kB / 492.6 MB, free: 9.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.042e-05/0.08978, allocations: 19.92 kB / 492.6 MB, free: 9.141 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.782e-05/0.08984, allocations: 19.86 kB / 492.6 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.08987, allocations: 4 kB / 492.6 MB, free: 9.117 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.042e-05/0.08988, allocations: 4 kB / 492.6 MB, free: 9.113 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.0899, allocations: 3.984 kB / 492.6 MB, free: 9.109 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.08994, allocations: 41.62 kB / 492.6 MB, free: 9.062 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 4.874e-05/0.08999, allocations: 11.97 kB / 492.7 MB, free: 9.051 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.09, allocations: 4 kB / 492.7 MB, free: 9.047 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09001, allocations: 0 / 492.7 MB, free: 9.047 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.09002, allocations: 0 / 492.7 MB, free: 9.047 MB / 378.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.0003563/0.09038, allocations: 347.7 kB / 493 MB, free: 8.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.09042, allocations: 8.031 kB / 493 MB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.92e-05/0.09045, allocations: 34.75 kB / 493 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.09048, allocations: 8.844 kB / 493.1 MB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.508e-05/0.09058, allocations: 176.2 kB / 493.2 MB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-06/0.0906, allocations: 384 / 493.2 MB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.09061, allocations: 4.312 kB / 493.2 MB, free: 8.387 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.09076, allocations: 67.53 kB / 493.3 MB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.09077, allocations: 0 / 493.3 MB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.09079, allocations: 7.984 kB / 493.3 MB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.0908, allocations: 0 / 493.3 MB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.512e-05/0.09089, allocations: 27.97 kB / 493.3 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003438/0.09124, allocations: 264.9 kB / 493.6 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.7e-05/0.09132, allocations: 34.56 kB / 493.6 MB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.601e-05/0.09138, allocations: 24.8 kB / 493.6 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.0914, allocations: 0 / 493.6 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.09143, allocations: 34.55 kB / 493.7 MB, free: 7.852 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.09143, allocations: 4 kB / 493.7 MB, free: 7.848 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002137/0.09165, allocations: 61.69 kB / 493.7 MB, free: 7.781 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.0917, allocations: 89.03 kB / 493.8 MB, free: 7.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.126e-05/0.09177, allocations: 105.8 kB / 493.9 MB, free: 7.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.09179, allocations: 29.69 kB / 494 MB, free: 7.527 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.769e-05/0.09184, allocations: 92.27 kB / 494.1 MB, free: 7.434 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.11e-05/0.09185, allocations: 3.906 kB / 494.1 MB, free: 7.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.09186, allocations: 0 / 494.1 MB, free: 7.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.201e-05/0.09196, allocations: 322.8 kB / 494.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.636e-05/0.09201, allocations: 11.98 kB / 494.4 MB, free: 7.094 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.433e-05/0.09207, allocations: 29.64 kB / 494.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.7e-05/0.09215, allocations: 32.88 kB / 494.4 MB, free: 7.023 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.09216, allocations: 0 / 494.4 MB, free: 7.023 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001179/0.09228, allocations: 65.62 kB / 494.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.0923, allocations: 4 kB / 494.5 MB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.09231, allocations: 0 / 494.5 MB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.09233, allocations: 3.984 kB / 494.5 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.88e-05/0.09239, allocations: 8 kB / 494.5 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.656e-06/0.0924, allocations: 0 / 494.5 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.911e-05/0.09247, allocations: 19.89 kB / 494.5 MB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.09248, allocations: 0 / 494.5 MB, free: 6.918 MB / 378.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 7.268e-05/0.09256, allocations: 117.8 kB / 494.7 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.09258, allocations: 0 / 494.7 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.572e-05/0.0926, allocations: 3.531 kB / 494.7 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.09261, allocations: 4 kB / 494.7 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.09262, allocations: 4 kB / 494.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.09262, allocations: 0 / 494.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.09276, allocations: 165.6 kB / 494.8 MB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.09277, allocations: 0 / 494.8 MB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.09281, allocations: 7.984 kB / 494.8 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.09282, allocations: 4 kB / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.09283, allocations: 0 / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.09284, allocations: 0 / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.09284, allocations: 0 / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.09299, allocations: 159.4 kB / 495 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.626e-05/0.09304, allocations: 81.02 kB / 495.1 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.09306, allocations: 8 kB / 495.1 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.13e-05/0.09315, allocations: 11.98 kB / 495.1 MB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.09319, allocations: 8.016 kB / 495.1 MB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.09321, allocations: 11.94 kB / 495.1 MB, free: 6.254 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.305e-05/0.09324, allocations: 83.28 kB / 495.2 MB, free: 6.172 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09325, allocations: 0 / 495.2 MB, free: 6.172 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001872/0.09344, allocations: 8 kB / 495.2 MB, free: 6.164 MB / 378.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.0003687/0.09381, allocations: 0.6891 MB / 495.9 MB, free: 5.449 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.09395, allocations: 35.95 kB / 495.9 MB, free: 5.414 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/0.09397, allocations: 0 / 495.9 MB, free: 5.414 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.791e-05/0.09402, allocations: 19.94 kB / 496 MB, free: 5.395 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000177/0.09421, allocations: 96 / 496 MB, free: 5.395 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003514/0.09457, allocations: 203.8 kB / 496.2 MB, free: 5.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.09478, allocations: 0.6809 MB / 496.8 MB, free: 4.441 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.09482, allocations: 11.44 kB / 496.8 MB, free: 4.43 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09483, allocations: 0 / 496.8 MB, free: 4.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.186/2.281, allocations: 0.809 MB / 497.7 MB, free: 3.621 MB / 378.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) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches