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.001886/0.001886, allocations: 100.3 kB / 19.69 MB, free: 2.094 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.002383/0.002383, allocations: 206.1 kB / 22.99 MB, free: 4.922 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.595/1.595, allocations: 207.7 MB / 233.8 MB, free: 9.812 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.2778/0.2778, allocations: 44.27 MB / 330.3 MB, free: 9.316 MB / 270.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.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.002273/0.002273, allocations: 72.45 kB / 467.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1429, allocations: 61.05 MB / 0.5161 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002875/0.1458, allocations: 1.433 MB / 0.5175 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008701/0.1467, allocations: 439.9 kB / 0.518 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.781e-05/0.1467, allocations: 0 / 0.518 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.162e-05/0.1467, allocations: 3.984 kB / 0.518 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.024e-05/0.1468, allocations: 7.875 kB / 0.518 GB, free: 5.293 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.147, allocations: 15.98 kB / 0.518 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.221e-05/0.1471, allocations: 31.92 kB / 0.518 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.532e-05/0.1471, allocations: 12.2 kB / 0.518 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.818e-05/0.1472, allocations: 23.86 kB / 0.5181 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.925e-05/0.1473, allocations: 19.92 kB / 0.5181 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.1473, allocations: 4 kB / 0.5181 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.278e-05/0.1473, allocations: 4 kB / 0.5181 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.451e-05/0.1473, allocations: 0 / 0.5181 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.1474, allocations: 19.91 kB / 0.5181 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.324e-05/0.1475, allocations: 31.84 kB / 0.5181 GB, free: 5.133 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1475, allocations: 0 / 0.5181 GB, free: 5.133 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1475, allocations: 0 / 0.5181 GB, free: 5.133 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1475, allocations: 0 / 0.5181 GB, free: 5.133 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.0006302/0.1481, allocations: 266.3 kB / 0.5184 GB, free: 4.844 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1482, allocations: 16.03 kB / 0.5184 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.742e-05/0.1482, allocations: 34.75 kB / 0.5184 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.1482, allocations: 12.89 kB / 0.5184 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.1484, allocations: 106.5 kB / 0.5185 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.1484, allocations: 4.375 kB / 0.5186 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.1484, allocations: 384 / 0.5186 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.1486, allocations: 89.17 kB / 0.5186 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.1486, allocations: 0 / 0.5186 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.1486, allocations: 0 / 0.5186 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1486, allocations: 3.984 kB / 0.5186 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.996e-05/0.1487, allocations: 23.98 kB / 0.5187 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004333/0.1492, allocations: 235.9 kB / 0.5189 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.1493, allocations: 34.5 kB / 0.5189 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.766e-05/0.1493, allocations: 8.922 kB / 0.5189 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.1493, allocations: 11.98 kB / 0.5189 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.1494, allocations: 34.55 kB / 0.519 GB, free: 4.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1494, allocations: 0 / 0.519 GB, free: 4.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002593/0.1496, allocations: 61.64 kB / 0.519 GB, free: 4.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.1497, allocations: 85.05 kB / 0.5191 GB, free: 3.957 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.1498, allocations: 117.8 kB / 0.5192 GB, free: 3.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1498, allocations: 29.69 kB / 0.5193 GB, free: 3.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.1499, allocations: 88.14 kB / 0.5193 GB, free: 3.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.1499, allocations: 3.953 kB / 0.5193 GB, free: 3.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.15, allocations: 13.72 kB / 0.5194 GB, free: 3.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1501, allocations: 322.8 kB / 0.5197 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.122e-05/0.1502, allocations: 12 kB / 0.5197 GB, free: 3.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.91e-05/0.1503, allocations: 55.53 kB / 0.5197 GB, free: 3.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.638e-05/0.1504, allocations: 24.84 kB / 0.5198 GB, free: 3.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1504, allocations: 0 / 0.5198 GB, free: 3.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001465/0.1505, allocations: 61.61 kB / 0.5198 GB, free: 3.188 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1505, allocations: 7.938 kB / 0.5198 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.1505, allocations: 0 / 0.5198 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1505, allocations: 4 kB / 0.5198 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.159e-05/0.1506, allocations: 0 / 0.5198 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1506, allocations: 4 kB / 0.5198 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.699e-05/0.1507, allocations: 12.02 kB / 0.5198 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.1507, allocations: 0 / 0.5198 GB, free: 3.16 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.0001217/0.1508, allocations: 117.8 kB / 0.52 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.58e-05/0.1508, allocations: 3.953 kB / 0.52 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.582e-05/0.1509, allocations: 15.61 kB / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1509, allocations: 0 / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1509, allocations: 0 / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1509, allocations: 0 / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.1511, allocations: 132.7 kB / 0.5201 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1511, allocations: 0 / 0.5201 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.062e-05/0.1511, allocations: 8 kB / 0.5201 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1511, allocations: 0 / 0.5201 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.1511, allocations: 3.938 kB / 0.5201 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1511, allocations: 4 kB / 0.5201 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1511, allocations: 0 / 0.5201 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.1514, allocations: 155.4 kB / 0.5203 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.155e-05/0.1514, allocations: 7.953 kB / 0.5203 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.1514, allocations: 0 / 0.5203 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.658e-05/0.1515, allocations: 11.98 kB / 0.5203 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.1515, allocations: 8.016 kB / 0.5203 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.1515, allocations: 4 kB / 0.5203 GB, free: 2.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.914e-05/0.1516, allocations: 87.27 kB / 0.5204 GB, free: 2.539 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1516, allocations: 0 / 0.5204 GB, free: 2.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.1518, allocations: 8 kB / 0.5204 GB, free: 2.531 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.0005492/0.1524, allocations: 0.6811 MB / 0.521 GB, free: 1.824 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001579/0.1525, allocations: 23.98 kB / 0.5211 GB, free: 1.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.1525, allocations: 8.031 kB / 0.5211 GB, free: 1.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.728e-05/0.1526, allocations: 15.98 kB / 0.5211 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.1528, allocations: 0 / 0.5211 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004707/0.1533, allocations: 168.3 kB / 0.5213 GB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.2e-05/0.1534, allocations: 63.34 kB / 0.5213 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.036e-05/0.1534, allocations: 240 / 0.5213 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.1535, allocations: 23.41 kB / 0.5213 GB, free: 1.469 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1535, allocations: 4 kB / 0.5213 GB, free: 1.465 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.1821, allocations: 2.059 MB / 0.5233 GB, free: 15.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.47, allocations: 3.859 kB / 0.5234 GB, free: 15.4 MB / 414.1 MB " [Timeout remaining time 648] (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.699670719914138]