Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009295/0.0009293, allocations: 198.1 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 226.5 MB / 243.4 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007323/0.0007327, allocations: 97.75 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2833/0.2833, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004373, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2746, allocations: 62.96 MB / 0.516 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001105/0.2757, allocations: 1.166 MB / 0.5171 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004926/0.2762, allocations: 431 kB / 0.5175 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.645e-05/0.2763, allocations: 0 / 0.5175 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.062e-05/0.2763, allocations: 0 / 0.5175 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.664e-05/0.2763, allocations: 6.875 kB / 0.5175 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001436/0.2765, allocations: 18.12 kB / 0.5175 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.448e-05/0.2765, allocations: 38.7 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.504e-05/0.2766, allocations: 7.031 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.778e-05/0.2767, allocations: 19.73 kB / 0.5176 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.04e-05/0.2768, allocations: 17.27 kB / 0.5176 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.2768, allocations: 0 / 0.5176 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.126e-05/0.2768, allocations: 7 kB / 0.5176 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.2769, allocations: 10.47 kB / 0.5176 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.2769, allocations: 36.77 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.039e-05/0.277, allocations: 15.55 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.277, allocations: 0 / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.277, allocations: 0 / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.676e-06/0.277, allocations: 3 kB / 0.5177 GB, free: 35.88 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.0003073/0.2773, allocations: 349.4 kB / 0.518 GB, free: 35.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.2773, allocations: 8.406 kB / 0.518 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.726e-05/0.2774, allocations: 36.86 kB / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.2775, allocations: 12.53 kB / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.6e-05/0.2776, allocations: 175.1 kB / 0.5182 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2776, allocations: 11.31 kB / 0.5182 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.2776, allocations: 4.312 kB / 0.5182 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.2777, allocations: 61.62 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.2777, allocations: 0 / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.2778, allocations: 0 / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.2778, allocations: 2.719 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.986e-05/0.2779, allocations: 33.47 kB / 0.5183 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002707/0.2781, allocations: 266.2 kB / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.632e-05/0.2782, allocations: 33.84 kB / 0.5186 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.164e-05/0.2783, allocations: 17.8 kB / 0.5186 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.2783, allocations: 2.969 kB / 0.5186 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.261e-05/0.2783, allocations: 34.56 kB / 0.5187 GB, free: 34.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.041e-06/0.2783, allocations: 0 / 0.5187 GB, free: 34.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.000222/0.2785, allocations: 67.34 kB / 0.5187 GB, free: 34.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.2786, allocations: 81.23 kB / 0.5188 GB, free: 34.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.662e-05/0.2786, allocations: 110.1 kB / 0.5189 GB, free: 34.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.2786, allocations: 31.97 kB / 0.519 GB, free: 34.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.467e-05/0.2787, allocations: 88.05 kB / 0.519 GB, free: 34.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.104e-05/0.2787, allocations: 6.812 kB / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.2787, allocations: 0 / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.907e-05/0.2787, allocations: 318.1 kB / 0.5194 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.3e-05/0.2788, allocations: 12.78 kB / 0.5194 GB, free: 34.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.33e-05/0.2788, allocations: 32.84 kB / 0.5194 GB, free: 34.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.975e-05/0.2789, allocations: 28.38 kB / 0.5194 GB, free: 34.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2789, allocations: 0 / 0.5194 GB, free: 34.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001059/0.279, allocations: 72.05 kB / 0.5195 GB, free: 34.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.2791, allocations: 12.25 kB / 0.5195 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.2791, allocations: 0 / 0.5195 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.2791, allocations: 3.328 kB / 0.5195 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.572e-05/0.2791, allocations: 5.594 kB / 0.5195 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.2791, allocations: 0 / 0.5195 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.326e-05/0.2792, allocations: 11.55 kB / 0.5195 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.2792, allocations: 2.625 kB / 0.5195 GB, free: 34.05 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 4.948e-05/0.2793, allocations: 116.5 kB / 0.5196 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.2793, allocations: 4 kB / 0.5196 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.861e-05/0.2793, allocations: 13.14 kB / 0.5197 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.2793, allocations: 0 / 0.5197 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2793, allocations: 3.938 kB / 0.5197 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.2793, allocations: 0 / 0.5197 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.2794, allocations: 169 kB / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.2795, allocations: 0 / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.536e-05/0.2795, allocations: 5.953 kB / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.2795, allocations: 0 / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.2795, allocations: 10.69 kB / 0.5198 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2795, allocations: 3.938 kB / 0.5198 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2795, allocations: 0 / 0.5198 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001168/0.2796, allocations: 155.8 kB / 0.52 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.421e-05/0.2797, allocations: 77.11 kB / 0.5201 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.2797, allocations: 6.719 kB / 0.5201 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-05/0.2798, allocations: 11.98 kB / 0.5201 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.2798, allocations: 10.36 kB / 0.5201 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.2798, allocations: 0 / 0.5201 GB, free: 33.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.315e-05/0.2799, allocations: 84.67 kB / 0.5202 GB, free: 33.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2799, allocations: 0 / 0.5202 GB, free: 33.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000193/0.2801, allocations: 9.875 kB / 0.5202 GB, free: 33.39 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.0002461/0.2803, allocations: 0.6898 MB / 0.5208 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001152/0.2804, allocations: 28.72 kB / 0.5209 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.2804, allocations: 7.062 kB / 0.5209 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.187e-05/0.2805, allocations: 12.91 kB / 0.5209 GB, free: 32.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001916/0.2807, allocations: 6.219 kB / 0.5209 GB, free: 32.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003185/0.281, allocations: 193.1 kB / 0.5211 GB, free: 32.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.676e-05/0.2811, allocations: 0.6833 MB / 0.5218 GB, free: 31.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.445e-05/0.2812, allocations: 14.19 kB / 0.5218 GB, free: 31.79 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2812, allocations: 0 / 0.5218 GB, free: 31.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.367/2.648, allocations: 0.8127 MB / 0.5226 GB, free: 31.74 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches