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.001825/0.001825, allocations: 110.4 kB / 19.58 MB, free: 2.305 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.002193/0.002193, allocations: 219.9 kB / 22.88 MB, free: 5.633 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.502/1.502, allocations: 207.6 MB / 233.6 MB, free: 9.988 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.2192/0.2192, allocations: 44.24 MB / 330.1 MB, free: 9.555 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.002266/0.002266, allocations: 67.89 kB / 467.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1371, allocations: 61.04 MB / 0.5158 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00292/0.14, allocations: 1.456 MB / 0.5173 GB, free: 6.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000868/0.1408, allocations: 463.8 kB / 0.5177 GB, free: 5.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.234e-05/0.1409, allocations: 0 / 0.5177 GB, free: 5.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.889e-05/0.1409, allocations: 4 kB / 0.5177 GB, free: 5.539 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.532e-05/0.141, allocations: 7.875 kB / 0.5177 GB, free: 5.531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.1412, allocations: 19.98 kB / 0.5177 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.421e-05/0.1413, allocations: 31.86 kB / 0.5178 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.1414, allocations: 12.25 kB / 0.5178 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.639e-05/0.1415, allocations: 15.94 kB / 0.5178 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.402e-05/0.1416, allocations: 19.92 kB / 0.5178 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.1416, allocations: 4 kB / 0.5178 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.641e-05/0.1416, allocations: 4 kB / 0.5178 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.159e-05/0.1416, allocations: 7.922 kB / 0.5178 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.792e-05/0.1417, allocations: 23.92 kB / 0.5178 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.1418, allocations: 27.84 kB / 0.5179 GB, free: 5.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1418, allocations: 0 / 0.5179 GB, free: 5.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1418, allocations: 0 / 0.5179 GB, free: 5.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1418, allocations: 3.984 kB / 0.5179 GB, free: 5.363 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.0005354/0.1423, allocations: 274.3 kB / 0.5181 GB, free: 5.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.1424, allocations: 8.031 kB / 0.5181 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.719e-05/0.1424, allocations: 34.69 kB / 0.5182 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.1424, allocations: 8.891 kB / 0.5182 GB, free: 5.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.1426, allocations: 110.5 kB / 0.5183 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.1426, allocations: 384 / 0.5183 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.1426, allocations: 384 / 0.5183 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.1428, allocations: 97.16 kB / 0.5184 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1429, allocations: 0 / 0.5184 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.1429, allocations: 0 / 0.5184 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.1429, allocations: 0 / 0.5184 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.528e-05/0.143, allocations: 19.98 kB / 0.5184 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005534/0.1435, allocations: 239.9 kB / 0.5186 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.42e-05/0.1436, allocations: 34.52 kB / 0.5187 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.103e-05/0.1437, allocations: 16.91 kB / 0.5187 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.1437, allocations: 0 / 0.5187 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.1437, allocations: 34.56 kB / 0.5187 GB, free: 4.359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.1437, allocations: 4 kB / 0.5187 GB, free: 4.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002767/0.144, allocations: 69.56 kB / 0.5188 GB, free: 4.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.1441, allocations: 81.05 kB / 0.5189 GB, free: 4.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.1442, allocations: 109.8 kB / 0.519 GB, free: 4.066 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.1442, allocations: 29.7 kB / 0.519 GB, free: 4.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.1443, allocations: 84.14 kB / 0.5191 GB, free: 3.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.1443, allocations: 12.06 kB / 0.5191 GB, free: 3.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.1444, allocations: 17.72 kB / 0.5191 GB, free: 3.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.1445, allocations: 322.8 kB / 0.5194 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.725e-05/0.1446, allocations: 7.984 kB / 0.5194 GB, free: 3.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.478e-05/0.1447, allocations: 55.39 kB / 0.5195 GB, free: 3.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.702e-05/0.1447, allocations: 24.84 kB / 0.5195 GB, free: 3.484 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.135e-06/0.1447, allocations: 4.031 kB / 0.5195 GB, free: 3.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001395/0.1449, allocations: 61.62 kB / 0.5196 GB, free: 3.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.1449, allocations: 4 kB / 0.5196 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1449, allocations: 4 kB / 0.5196 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.1449, allocations: 0 / 0.5196 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.502e-05/0.145, allocations: 7.984 kB / 0.5196 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.145, allocations: 0 / 0.5196 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.82e-05/0.1451, allocations: 7.984 kB / 0.5196 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.1451, allocations: 0 / 0.5196 GB, free: 3.391 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.000136/0.1452, allocations: 125.8 kB / 0.5197 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/0.1452, allocations: 3.953 kB / 0.5197 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.467e-05/0.1453, allocations: 7.625 kB / 0.5197 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1453, allocations: 0 / 0.5197 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.1453, allocations: 0 / 0.5197 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1453, allocations: 0 / 0.5197 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.1455, allocations: 144.6 kB / 0.5198 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1455, allocations: 0 / 0.5198 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.247e-05/0.1455, allocations: 7.984 kB / 0.5199 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.1455, allocations: 0 / 0.5199 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1455, allocations: 4 kB / 0.5199 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1455, allocations: 0 / 0.5199 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1455, allocations: 0 / 0.5199 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001998/0.1457, allocations: 151.4 kB / 0.52 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.103e-05/0.1457, allocations: 7.953 kB / 0.52 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.1458, allocations: 4 kB / 0.52 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.317e-05/0.1458, allocations: 11.97 kB / 0.52 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/0.1459, allocations: 7.984 kB / 0.52 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.1459, allocations: 3.984 kB / 0.52 GB, free: 2.848 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.325e-05/0.1459, allocations: 87.28 kB / 0.5201 GB, free: 2.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1459, allocations: 0 / 0.5201 GB, free: 2.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.1462, allocations: 4 kB / 0.5201 GB, free: 2.758 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.0005237/0.1467, allocations: 0.685 MB / 0.5208 GB, free: 2.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001489/0.1468, allocations: 23.98 kB / 0.5208 GB, free: 2.023 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1468, allocations: 0 / 0.5208 GB, free: 2.023 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.989e-05/0.1469, allocations: 15.98 kB / 0.5208 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.1471, allocations: 0 / 0.5208 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.1475, allocations: 176.4 kB / 0.521 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.537e-05/0.1476, allocations: 63.34 kB / 0.5211 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.993e-05/0.1476, allocations: 0 / 0.5211 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.186e-05/0.1477, allocations: 15.44 kB / 0.5211 GB, free: 1.699 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1477, allocations: 0 / 0.5211 GB, free: 1.699 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.1747, allocations: 1.628 MB / 0.5227 GB, free: 72 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.12, allocations: 7.344 kB / 0.5227 GB, free: 68 kB / 398.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: 14.118967331014574]