Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_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.00123/0.00123, allocations: 113.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 184.1 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2103/0.2103, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.3894, allocations: 60.81 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.0024/0.3919, allocations: 1.444 MB / 0.5198 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006061/0.3925, allocations: 417.5 kB / 0.5202 GB, free: 2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.713e-05/0.3926, allocations: 1.312 kB / 0.5202 GB, free: 2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.394e-05/0.3926, allocations: 3.938 kB / 0.5202 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.739e-05/0.3927, allocations: 9.781 kB / 0.5202 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.3928, allocations: 11.14 kB / 0.5202 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.868e-05/0.3929, allocations: 33.83 kB / 0.5203 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.779e-05/0.393, allocations: 13.72 kB / 0.5203 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.072e-05/0.3931, allocations: 17.36 kB / 0.5203 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.963e-05/0.3932, allocations: 16.62 kB / 0.5203 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.3932, allocations: 2.562 kB / 0.5203 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.072e-05/0.3932, allocations: 3.219 kB / 0.5203 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.3932, allocations: 7.297 kB / 0.5203 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.771e-05/0.3933, allocations: 25.38 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.306e-05/0.3933, allocations: 29.86 kB / 0.5204 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3934, allocations: 0 / 0.5204 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3934, allocations: 3.938 kB / 0.5204 GB, free: 1.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.3934, allocations: 0 / 0.5204 GB, free: 1.906 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.000369/0.3938, allocations: 351.1 kB / 0.5207 GB, free: 1.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3938, allocations: 10.17 kB / 0.5207 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.383e-05/0.3938, allocations: 32.16 kB / 0.5208 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.617e-05/0.3939, allocations: 8.531 kB / 0.5208 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.86e-05/0.3939, allocations: 171.7 kB / 0.5209 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.3939, allocations: 0.9375 kB / 0.5209 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-06/0.394, allocations: 1.5 kB / 0.5209 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.3941, allocations: 61.94 kB / 0.521 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.3941, allocations: 0 / 0.521 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.3941, allocations: 4 kB / 0.521 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.3941, allocations: 1.5 kB / 0.521 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.804e-05/0.3942, allocations: 20.02 kB / 0.521 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003058/0.3945, allocations: 268.5 kB / 0.5213 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.963e-05/0.3947, allocations: 30.92 kB / 0.5213 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.5e-05/0.3947, allocations: 16.94 kB / 0.5213 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.3947, allocations: 1.281 kB / 0.5213 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.3948, allocations: 35.12 kB / 0.5214 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3948, allocations: 1.438 kB / 0.5214 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002301/0.395, allocations: 69.55 kB / 0.5214 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.395, allocations: 78.2 kB / 0.5215 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.035e-05/0.3951, allocations: 112 kB / 0.5216 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.3951, allocations: 25.7 kB / 0.5216 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.833e-05/0.3952, allocations: 87.7 kB / 0.5217 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.3952, allocations: 9.766 kB / 0.5217 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/0.3952, allocations: 18.03 kB / 0.5217 GB, free: 488 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.942e-05/0.3953, allocations: 322.1 kB / 0.522 GB, free: 160 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.998e-05/0.3953, allocations: 17.61 kB / 0.5221 GB, free: 152 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.803e-05/0.3954, allocations: 25.11 kB / 0.5221 GB, free: 132 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.479e-05/0.3955, allocations: 24.28 kB / 0.5221 GB, free: 120 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3955, allocations: 0.7344 kB / 0.5221 GB, free: 120 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001173/0.3956, allocations: 66.81 kB / 0.5222 GB, free: 72 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.3956, allocations: 5.281 kB / 0.5222 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.3956, allocations: 0 / 0.5222 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3956, allocations: 5.969 kB / 0.5222 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.736e-05/0.3957, allocations: 7.562 kB / 0.5222 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3957, allocations: 1.125 kB / 0.5222 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.921e-05/0.3958, allocations: 12.09 kB / 0.5222 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.3958, allocations: 5.719 kB / 0.5222 GB, free: 56 kB / 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 (hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.736e-05/0.3959, allocations: 116.7 kB / 0.5223 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.3959, allocations: 6.188 kB / 0.5223 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.886e-05/0.396, allocations: 13.22 kB / 0.5223 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.396, allocations: 2.156 kB / 0.5223 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.396, allocations: 0 / 0.5223 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.396, allocations: 0 / 0.5223 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.3961, allocations: 163.6 kB / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3962, allocations: 0 / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.895e-05/0.3962, allocations: 4.312 kB / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.3962, allocations: 5.797 kB / 0.5225 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.3962, allocations: 5.125 kB / 0.5225 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3962, allocations: 0.7031 kB / 0.5225 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3962, allocations: 3.938 kB / 0.5225 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001558/0.3964, allocations: 147 kB / 0.5227 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.834e-05/0.3964, allocations: 84.39 kB / 0.5227 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/0.3965, allocations: 1.188 kB / 0.5227 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.587e-05/0.3966, allocations: 11.34 kB / 0.5228 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.3966, allocations: 10.72 kB / 0.5228 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.3966, allocations: 2.125 kB / 0.5228 GB, free: 15.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.308e-05/0.3967, allocations: 87.22 kB / 0.5228 GB, free: 15.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3967, allocations: 0 / 0.5228 GB, free: 15.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002202/0.3969, allocations: 5.719 kB / 0.5229 GB, free: 15.39 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004309/0.3973, allocations: 0.6833 MB / 0.5235 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.3975, allocations: 25.64 kB / 0.5235 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3975, allocations: 1.125 kB / 0.5235 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.39e-05/0.3976, allocations: 14.58 kB / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.3978, allocations: 5.125 kB / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004193/0.3982, allocations: 154.5 kB / 0.5237 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.3986, allocations: 0.682 MB / 0.5244 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.567e-05/0.3987, allocations: 1.984 kB / 0.5244 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.231e-05/0.3987, allocations: 19.27 kB / 0.5244 GB, free: 13.84 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3987, allocations: 0 / 0.5244 GB, free: 13.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01728/0.416, allocations: 1.515 MB / 0.5259 GB, free: 13.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/8.095, allocations: 7.062 kB / 0.5259 GB, free: 13.43 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hysteresis.y Variables in the result:Signal.amplitude,Signal.f,Signal.offset,Signal.phase,Signal.startTime,Signal.y,hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,time