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.001374/0.001374, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2268/0.2268, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 79.86 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.3753, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002461/0.3778, allocations: 1.471 MB / 0.5319 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008271/0.3787, allocations: 488.5 kB / 0.5324 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.437e-05/0.3788, allocations: 1.344 kB / 0.5324 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.915e-05/0.3788, allocations: 3.938 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.122e-05/0.3789, allocations: 5.062 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.3791, allocations: 25.12 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.3792, allocations: 42.81 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.431e-05/0.3793, allocations: 4.375 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.3794, allocations: 21.55 kB / 0.5325 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.152e-05/0.3795, allocations: 22.02 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.3795, allocations: 1.938 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.435e-05/0.3796, allocations: 8.469 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.3796, allocations: 13.47 kB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.424e-05/0.3796, allocations: 11.22 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.3797, allocations: 38.14 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3798, allocations: 0 / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3798, allocations: 1.094 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3798, allocations: 0 / 0.5326 GB, free: 11.75 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.000542/0.3803, allocations: 364 kB / 0.5329 GB, free: 11.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3804, allocations: 11.56 kB / 0.5329 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.744e-05/0.3804, allocations: 30.75 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.3806, allocations: 10.67 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.3808, allocations: 179.6 kB / 0.5332 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.3808, allocations: 8.312 kB / 0.5332 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.3808, allocations: 384 / 0.5332 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.381, allocations: 66.17 kB / 0.5332 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.381, allocations: 0 / 0.5332 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.381, allocations: 0 / 0.5332 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.381, allocations: 3.531 kB / 0.5332 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.569e-05/0.3811, allocations: 19.05 kB / 0.5332 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003683/0.3815, allocations: 268.7 kB / 0.5335 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.241e-05/0.3816, allocations: 32.2 kB / 0.5335 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.812e-05/0.3817, allocations: 14.34 kB / 0.5336 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.3817, allocations: 5.375 kB / 0.5336 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.3817, allocations: 30.56 kB / 0.5336 GB, free: 10.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3817, allocations: 1.375 kB / 0.5336 GB, free: 10.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002351/0.382, allocations: 62.23 kB / 0.5336 GB, free: 10.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.382, allocations: 82.61 kB / 0.5337 GB, free: 10.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.351e-05/0.3821, allocations: 112.8 kB / 0.5338 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.3821, allocations: 25.7 kB / 0.5339 GB, free: 10.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.3822, allocations: 90.8 kB / 0.5339 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.3822, allocations: 7.922 kB / 0.534 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.3823, allocations: 17.84 kB / 0.534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.48e-05/0.3824, allocations: 316.2 kB / 0.5343 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.856e-05/0.3824, allocations: 14.86 kB / 0.5343 GB, free: 9.926 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.926e-05/0.3825, allocations: 33.94 kB / 0.5343 GB, free: 9.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.698e-05/0.3826, allocations: 25.22 kB / 0.5343 GB, free: 9.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3826, allocations: 0 / 0.5343 GB, free: 9.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000118/0.3827, allocations: 60.78 kB / 0.5344 GB, free: 9.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.3827, allocations: 6.781 kB / 0.5344 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.3827, allocations: 1.375 kB / 0.5344 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.3827, allocations: 0 / 0.5344 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.579e-05/0.3828, allocations: 14.77 kB / 0.5344 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.3828, allocations: 1.375 kB / 0.5344 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.63e-05/0.3829, allocations: 13.42 kB / 0.5344 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.3829, allocations: 1.344 kB / 0.5344 GB, free: 9.812 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 7.186e-05/0.383, allocations: 112.5 kB / 0.5345 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/0.383, allocations: 1.312 kB / 0.5345 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.332e-05/0.383, allocations: 12.81 kB / 0.5346 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.383, allocations: 1.312 kB / 0.5346 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.383, allocations: 4 kB / 0.5346 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.383, allocations: 0 / 0.5346 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.3832, allocations: 164.5 kB / 0.5347 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3832, allocations: 0 / 0.5347 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.759e-05/0.3832, allocations: 8.016 kB / 0.5347 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3833, allocations: 0 / 0.5347 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.3833, allocations: 5.375 kB / 0.5347 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3833, allocations: 3.938 kB / 0.5347 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3833, allocations: 0 / 0.5347 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.3834, allocations: 161 kB / 0.5349 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.278e-05/0.3835, allocations: 78.11 kB / 0.535 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.3835, allocations: 0.8438 kB / 0.535 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.17e-05/0.3836, allocations: 9.641 kB / 0.535 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.3836, allocations: 7.688 kB / 0.535 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.3837, allocations: 3.984 kB / 0.535 GB, free: 9.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.721e-05/0.3837, allocations: 82.28 kB / 0.5351 GB, free: 9.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3837, allocations: 5.469 kB / 0.5351 GB, free: 9.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.384, allocations: 8.719 kB / 0.5351 GB, free: 9.121 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.0004187/0.3844, allocations: 0.6833 MB / 0.5357 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001553/0.3845, allocations: 28.8 kB / 0.5358 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3846, allocations: 0 / 0.5358 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.657e-05/0.3846, allocations: 15.83 kB / 0.5358 GB, free: 8.422 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.3849, allocations: 6.594 kB / 0.5358 GB, free: 8.418 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.3861, allocations: 1.259 MB / 0.537 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002428/0.3863, allocations: 0.6798 MB / 0.5377 GB, free: 6.484 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.208e-05/0.3864, allocations: 5.391 kB / 0.5377 GB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.014e-05/0.3864, allocations: 17.53 kB / 0.5377 GB, free: 6.465 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3864, allocations: 0 / 0.5377 GB, free: 6.465 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.4035, allocations: 1.547 MB / 0.5392 GB, free: 5.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/8.147, allocations: 12.03 kB / 0.5392 GB, free: 5.578 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