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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 107.5 kB / 19.69 MB, free: 2.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 228.2 kB / 23.01 MB, free: 5.039 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.429/1.429, allocations: 207.6 MB / 233.8 MB, free: 9.977 MB / 190.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.2269/0.2269, allocations: 44.23 MB / 330.3 MB, free: 9.613 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00219/0.00219, allocations: 71.89 kB / 467.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1305, allocations: 61.04 MB / 0.5161 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00325/0.1337, allocations: 1.456 MB / 0.5176 GB, free: 5.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009748/0.1347, allocations: 471.7 kB / 0.518 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.13e-05/0.1348, allocations: 0 / 0.518 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.1348, allocations: 4 kB / 0.518 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.862e-05/0.1348, allocations: 3.938 kB / 0.518 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000185/0.135, allocations: 19.92 kB / 0.518 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.1351, allocations: 35.86 kB / 0.5181 GB, free: 5.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.1352, allocations: 8.266 kB / 0.5181 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1353, allocations: 19.92 kB / 0.5181 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.648e-05/0.1354, allocations: 19.92 kB / 0.5181 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.1354, allocations: 4 kB / 0.5181 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.708e-06/0.1354, allocations: 0 / 0.5181 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.625e-05/0.1355, allocations: 15.92 kB / 0.5181 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.306e-05/0.1355, allocations: 7.938 kB / 0.5181 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001076/0.1356, allocations: 35.83 kB / 0.5182 GB, free: 5.262 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1356, allocations: 0 / 0.5182 GB, free: 5.262 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1356, allocations: 4 kB / 0.5182 GB, free: 5.258 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1356, allocations: 3.984 kB / 0.5182 GB, free: 5.254 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.0005092/0.1361, allocations: 270.3 kB / 0.5184 GB, free: 4.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1362, allocations: 8.031 kB / 0.5184 GB, free: 4.953 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.1362, allocations: 38.75 kB / 0.5185 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.1363, allocations: 4.891 kB / 0.5185 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.1364, allocations: 110.5 kB / 0.5186 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1364, allocations: 384 / 0.5186 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.1364, allocations: 4.375 kB / 0.5186 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.1366, allocations: 63.45 kB / 0.5187 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1366, allocations: 0 / 0.5187 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.1366, allocations: 4 kB / 0.5187 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1366, allocations: 0 / 0.5187 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.718e-05/0.1367, allocations: 19.98 kB / 0.5187 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.1371, allocations: 239.9 kB / 0.5189 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.332e-05/0.1372, allocations: 34.45 kB / 0.5189 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.194e-05/0.1373, allocations: 24.91 kB / 0.519 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.1373, allocations: 0 / 0.519 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1373, allocations: 30.56 kB / 0.519 GB, free: 4.281 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 7.51e-07/0.1373, allocations: 3.938 kB / 0.519 GB, free: 4.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002602/0.1376, allocations: 65.62 kB / 0.5191 GB, free: 4.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.1376, allocations: 81.11 kB / 0.5191 GB, free: 4.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.1377, allocations: 110 kB / 0.5192 GB, free: 3.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.1378, allocations: 25.7 kB / 0.5193 GB, free: 3.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.862e-05/0.1378, allocations: 92.08 kB / 0.5194 GB, free: 3.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.1378, allocations: 11.92 kB / 0.5194 GB, free: 3.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.1379, allocations: 17.72 kB / 0.5194 GB, free: 3.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.138, allocations: 314.8 kB / 0.5197 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.303e-05/0.1381, allocations: 15.98 kB / 0.5197 GB, free: 3.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.966e-05/0.1381, allocations: 29.7 kB / 0.5197 GB, free: 3.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.953e-05/0.1382, allocations: 24.84 kB / 0.5197 GB, free: 3.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1382, allocations: 0 / 0.5197 GB, free: 3.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001326/0.1383, allocations: 57.69 kB / 0.5198 GB, free: 3.375 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1384, allocations: 4 kB / 0.5198 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.1384, allocations: 0 / 0.5198 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1384, allocations: 0 / 0.5198 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.719e-05/0.1385, allocations: 11.92 kB / 0.5198 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.207e-06/0.1385, allocations: 0 / 0.5198 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.512e-05/0.1385, allocations: 12.02 kB / 0.5198 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.1385, allocations: 4 kB / 0.5198 GB, free: 3.344 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 0.0001022/0.1386, allocations: 113.8 kB / 0.5199 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.1387, allocations: 7.953 kB / 0.5199 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.499e-05/0.1387, allocations: 7.625 kB / 0.52 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1387, allocations: 0 / 0.52 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1387, allocations: 4 kB / 0.52 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1387, allocations: 144 / 0.52 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001974/0.1389, allocations: 136.7 kB / 0.5201 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.1389, allocations: 3.984 kB / 0.5201 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.494e-05/0.1389, allocations: 7.984 kB / 0.5201 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.1389, allocations: 0 / 0.5201 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.139, allocations: 4 kB / 0.5201 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.139, allocations: 0 / 0.5201 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.139, allocations: 4 kB / 0.5201 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.1392, allocations: 151.4 kB / 0.5203 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.452e-05/0.1392, allocations: 7.938 kB / 0.5203 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.1392, allocations: 7.938 kB / 0.5203 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.038e-05/0.1393, allocations: 4 kB / 0.5203 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.1393, allocations: 15.92 kB / 0.5203 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.1393, allocations: 3.984 kB / 0.5203 GB, free: 2.801 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.666e-05/0.1394, allocations: 83.28 kB / 0.5204 GB, free: 2.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1394, allocations: 0 / 0.5204 GB, free: 2.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.1396, allocations: 8 kB / 0.5204 GB, free: 2.711 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.0005232/0.1401, allocations: 0.6773 MB / 0.521 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.1403, allocations: 27.92 kB / 0.5211 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1403, allocations: 0 / 0.5211 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.052e-05/0.1403, allocations: 20.02 kB / 0.5211 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.1405, allocations: 5.406 kB / 0.5211 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005016/0.141, allocations: 164.3 kB / 0.5212 GB, free: 1.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.1414, allocations: 0.6768 MB / 0.5219 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.127e-05/0.1414, allocations: 4 kB / 0.5219 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.03e-05/0.1415, allocations: 15.38 kB / 0.5219 GB, free: 1.035 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1415, allocations: 4.062 kB / 0.5219 GB, free: 1.031 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.1709, allocations: 1.627 MB / 0.5235 GB, free: 15.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/10.9, allocations: 4.062 kB / 0.5235 GB, free: 15.4 MB / 414.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 13.79665040713735]