Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 114.7 kB / 17.13 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002007/0.002007, allocations: 191.7 kB / 20.07 MB, free: 2.984 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 207.6 MB / 230.5 MB, free: 4.035 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3653/0.3653, allocations: 44.23 MB / 326.5 MB, free: 6.844 MB / 254.1 MB " [Timeout remaining time 179] 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 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 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_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 79.88 kB / 462.2 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3819, allocations: 60.99 MB / 0.5109 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002806/0.3847, allocations: 1.446 MB / 0.5123 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007757/0.3855, allocations: 470.7 kB / 0.5127 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.271e-05/0.3856, allocations: 4 kB / 0.5128 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.33e-05/0.3856, allocations: 0 / 0.5128 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.065e-05/0.3857, allocations: 7.922 kB / 0.5128 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001967/0.3858, allocations: 15.73 kB / 0.5128 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.526e-05/0.3859, allocations: 36.56 kB / 0.5128 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.386, allocations: 6.688 kB / 0.5128 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.435e-05/0.3861, allocations: 26.75 kB / 0.5128 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.016e-05/0.3862, allocations: 20.02 kB / 0.5129 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.3862, allocations: 0 / 0.5129 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.838e-06/0.3862, allocations: 3.562 kB / 0.5129 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.696e-05/0.3862, allocations: 4 kB / 0.5129 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.188e-05/0.3863, allocations: 15.78 kB / 0.5129 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.3864, allocations: 33.72 kB / 0.5129 GB, free: 11.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3864, allocations: 0 / 0.5129 GB, free: 11.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3864, allocations: 0 / 0.5129 GB, free: 11.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.3864, allocations: 0 / 0.5129 GB, free: 11.61 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.000428/0.3868, allocations: 350.6 kB / 0.5132 GB, free: 11.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3869, allocations: 12.95 kB / 0.5133 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.441e-05/0.3869, allocations: 34.47 kB / 0.5133 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.631e-05/0.3869, allocations: 8.891 kB / 0.5133 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.012e-05/0.387, allocations: 170.8 kB / 0.5135 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.387, allocations: 5.453 kB / 0.5135 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.387, allocations: 1.438 kB / 0.5135 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.3872, allocations: 61.53 kB / 0.5135 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3872, allocations: 3.984 kB / 0.5135 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.3872, allocations: 4.969 kB / 0.5135 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3872, allocations: 0 / 0.5135 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.807e-05/0.3873, allocations: 23.55 kB / 0.5136 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004084/0.3877, allocations: 258.4 kB / 0.5138 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.843e-05/0.3878, allocations: 35.69 kB / 0.5138 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.564e-05/0.3879, allocations: 14.92 kB / 0.5139 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.3879, allocations: 5.016 kB / 0.5139 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.3879, allocations: 35.88 kB / 0.5139 GB, free: 10.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.3879, allocations: 0 / 0.5139 GB, free: 10.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002395/0.3881, allocations: 66.12 kB / 0.514 GB, free: 10.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.3882, allocations: 78.55 kB / 0.514 GB, free: 10.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.064e-05/0.3883, allocations: 108 kB / 0.5141 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.3883, allocations: 25.7 kB / 0.5142 GB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.37e-05/0.3883, allocations: 91.23 kB / 0.5142 GB, free: 10.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.3883, allocations: 7.891 kB / 0.5143 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.3884, allocations: 22.16 kB / 0.5143 GB, free: 10.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.159e-05/0.3884, allocations: 318.8 kB / 0.5146 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/0.3885, allocations: 11.94 kB / 0.5146 GB, free: 9.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.816e-05/0.3885, allocations: 30.42 kB / 0.5146 GB, free: 9.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.173e-05/0.3886, allocations: 28.78 kB / 0.5146 GB, free: 9.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3886, allocations: 0 / 0.5146 GB, free: 9.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001109/0.3887, allocations: 59.7 kB / 0.5147 GB, free: 9.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3887, allocations: 5.75 kB / 0.5147 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3887, allocations: 0 / 0.5147 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3887, allocations: 0 / 0.5147 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.931e-05/0.3888, allocations: 7.5 kB / 0.5147 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.3888, allocations: 1.656 kB / 0.5147 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.552e-05/0.3889, allocations: 9.547 kB / 0.5147 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.3889, allocations: 4 kB / 0.5147 GB, free: 9.684 MB / 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 5.941e-05/0.3889, allocations: 112.3 kB / 0.5148 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.389, allocations: 6.109 kB / 0.5148 GB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.389, allocations: 16.77 kB / 0.5149 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.389, allocations: 1.125 kB / 0.5149 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.389, allocations: 0 / 0.5149 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.389, allocations: 1.375 kB / 0.5149 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.3891, allocations: 167.3 kB / 0.515 GB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3891, allocations: 4 kB / 0.515 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.908e-05/0.3892, allocations: 7.844 kB / 0.515 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3892, allocations: 3.984 kB / 0.515 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-06/0.3892, allocations: 0 / 0.515 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3892, allocations: 1.438 kB / 0.515 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3892, allocations: 0 / 0.515 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.3893, allocations: 156.7 kB / 0.5152 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.478e-05/0.3894, allocations: 82.41 kB / 0.5153 GB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.3894, allocations: 9.281 kB / 0.5153 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.3894, allocations: 7.984 kB / 0.5153 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.3895, allocations: 11.8 kB / 0.5153 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.3895, allocations: 1.281 kB / 0.5153 GB, free: 9.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.3895, allocations: 90.25 kB / 0.5154 GB, free: 8.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3895, allocations: 0 / 0.5154 GB, free: 8.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.3897, allocations: 9.5 kB / 0.5154 GB, free: 8.969 MB / 382.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.0003436/0.3901, allocations: 0.6836 MB / 0.5161 GB, free: 8.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.3902, allocations: 28.27 kB / 0.5161 GB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3902, allocations: 0 / 0.5161 GB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.293e-05/0.3903, allocations: 11.19 kB / 0.5161 GB, free: 8.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.3905, allocations: 2.656 kB / 0.5161 GB, free: 8.273 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004243/0.3909, allocations: 164.5 kB / 0.5163 GB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.3911, allocations: 0.6786 MB / 0.5169 GB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.07e-05/0.3911, allocations: 1.125 kB / 0.5169 GB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.3911, allocations: 13.67 kB / 0.5169 GB, free: 7.391 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3911, allocations: 0 / 0.5169 GB, free: 7.391 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.4174, allocations: 1.511 MB / 0.5184 GB, free: 6.453 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.561, allocations: 5.359 kB / 0.5184 GB, free: 6.449 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.63708187872544]