Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001421/0.001421, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001863/0.001863, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.574/1.574, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2261/0.2261, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 79.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3837, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00285/0.3866, allocations: 1.462 MB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000884/0.3875, allocations: 491 kB / 0.5324 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.645e-05/0.3876, allocations: 0 / 0.5324 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.951e-05/0.3876, allocations: 7.938 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.213e-05/0.3877, allocations: 6.094 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.3879, allocations: 27.86 kB / 0.5324 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.52e-05/0.388, allocations: 34.2 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.34e-05/0.3881, allocations: 7.562 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3883, allocations: 21.78 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.222e-05/0.3883, allocations: 17.52 kB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.3884, allocations: 7.25 kB / 0.5325 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.404e-05/0.3884, allocations: 4.812 kB / 0.5325 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.824e-05/0.3884, allocations: 23.33 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.3885, allocations: 11.19 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.3886, allocations: 41.28 kB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3886, allocations: 0 / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3886, allocations: 0 / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.3886, allocations: 0 / 0.5326 GB, free: 11.72 MB / 398.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.0004452/0.3891, allocations: 350.8 kB / 0.5329 GB, free: 11.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.3891, allocations: 10.81 kB / 0.5329 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.312e-05/0.3892, allocations: 30.75 kB / 0.533 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.3893, allocations: 23.52 kB / 0.533 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/0.3896, allocations: 175.8 kB / 0.5332 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-06/0.3896, allocations: 384 / 0.5332 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-06/0.3896, allocations: 4.219 kB / 0.5332 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.3897, allocations: 73.84 kB / 0.5332 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.3898, allocations: 0 / 0.5332 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.3898, allocations: 0 / 0.5332 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.3898, allocations: 4 kB / 0.5332 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.408e-05/0.3899, allocations: 17.61 kB / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000333/0.3902, allocations: 258.6 kB / 0.5335 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.603e-05/0.3903, allocations: 32.14 kB / 0.5335 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.85e-05/0.3904, allocations: 19.72 kB / 0.5336 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.3904, allocations: 4 kB / 0.5336 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.3904, allocations: 31.94 kB / 0.5336 GB, free: 10.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/0.3904, allocations: 0 / 0.5336 GB, free: 10.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002151/0.3907, allocations: 62.3 kB / 0.5337 GB, free: 10.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.3907, allocations: 78.48 kB / 0.5337 GB, free: 10.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.774e-05/0.3908, allocations: 108.8 kB / 0.5338 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.3908, allocations: 31.2 kB / 0.5339 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.558e-05/0.3909, allocations: 97.72 kB / 0.534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.3909, allocations: 13.3 kB / 0.534 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.481e-05/0.3909, allocations: 12.47 kB / 0.534 GB, free: 10.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3911, allocations: 320.2 kB / 0.5343 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.788e-05/0.3911, allocations: 14.8 kB / 0.5343 GB, free: 9.895 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.902e-05/0.3912, allocations: 27.2 kB / 0.5343 GB, free: 9.871 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.403e-05/0.3913, allocations: 28.56 kB / 0.5344 GB, free: 9.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3913, allocations: 0 / 0.5344 GB, free: 9.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001195/0.3914, allocations: 60.41 kB / 0.5344 GB, free: 9.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3914, allocations: 4.875 kB / 0.5344 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3914, allocations: 1.156 kB / 0.5344 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3914, allocations: 0 / 0.5344 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.686e-05/0.3915, allocations: 11.86 kB / 0.5344 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.3915, allocations: 0 / 0.5344 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.969e-05/0.3916, allocations: 13.86 kB / 0.5344 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.3916, allocations: 4 kB / 0.5344 GB, free: 9.785 MB / 398.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 9.312e-05/0.3917, allocations: 117.5 kB / 0.5346 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.3917, allocations: 5.406 kB / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.154e-05/0.3918, allocations: 4.906 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3918, allocations: 1.438 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3918, allocations: 0 / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.3918, allocations: 0 / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.3919, allocations: 168.1 kB / 0.5347 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.3919, allocations: 0 / 0.5347 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-05/0.392, allocations: 11.86 kB / 0.5347 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.392, allocations: 0 / 0.5347 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.392, allocations: 1.375 kB / 0.5347 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.392, allocations: 0 / 0.5347 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.392, allocations: 144 / 0.5347 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.3922, allocations: 164.5 kB / 0.5349 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.3922, allocations: 78.86 kB / 0.535 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.3923, allocations: 5 kB / 0.535 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.305e-05/0.3924, allocations: 8.922 kB / 0.535 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.3924, allocations: 7.891 kB / 0.535 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3924, allocations: 0 / 0.535 GB, free: 9.176 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.551e-05/0.3925, allocations: 86.12 kB / 0.5351 GB, free: 9.098 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3925, allocations: 1.375 kB / 0.5351 GB, free: 9.098 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.3927, allocations: 4.938 kB / 0.5351 GB, free: 9.098 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.0003972/0.3931, allocations: 0.6914 MB / 0.5358 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.3932, allocations: 32.5 kB / 0.5358 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.3932, allocations: 0 / 0.5358 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.278e-05/0.3933, allocations: 8.219 kB / 0.5358 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.3935, allocations: 12.72 kB / 0.5358 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.3947, allocations: 1.26 MB / 0.537 GB, free: 7.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.395, allocations: 0.6828 MB / 0.5377 GB, free: 6.449 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.072e-05/0.395, allocations: 1.438 kB / 0.5377 GB, free: 6.449 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.707e-05/0.395, allocations: 13.97 kB / 0.5377 GB, free: 6.438 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.395, allocations: 0 / 0.5377 GB, free: 6.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.414, allocations: 1.537 MB / 0.5392 GB, free: 5.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/8.127, allocations: 16.38 kB / 0.5392 GB, free: 5.551 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_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.continuous,Signal.f,Signal.offset,Signal.phase,Signal.startTime,Signal.y,hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,time