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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 111.5 kB / 17.04 MB, free: 5.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 195 kB / 17.98 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2402/0.2402, allocations: 43.52 MB / 314.7 MB, free: 492 kB / 254.1 MB 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.001543/0.001544, allocations: 71.62 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1515, allocations: 57.79 MB / 442 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002819/0.1543, allocations: 1.425 MB / 443.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006446/0.155, allocations: 458.7 kB / 443.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.142e-05/0.1551, allocations: 0 / 443.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.969e-05/0.1551, allocations: 3.938 kB / 443.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.756e-05/0.1552, allocations: 7.938 kB / 443.9 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001868/0.1554, allocations: 23.91 kB / 443.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.381e-05/0.1555, allocations: 39.86 kB / 443.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.1556, allocations: 0 / 443.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.282e-05/0.1557, allocations: 23.91 kB / 443.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.273e-05/0.1557, allocations: 11.98 kB / 444 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.1558, allocations: 7.938 kB / 444 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.1558, allocations: 4 kB / 444 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.1558, allocations: 8 kB / 444 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.1558, allocations: 15.92 kB / 444 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.633e-05/0.1559, allocations: 35.83 kB / 444 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1559, allocations: 0 / 444 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1559, allocations: 0 / 444 MB, free: 4.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.156, allocations: 0 / 444 MB, free: 4.105 MB / 318.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.0003854/0.1563, allocations: 347.4 kB / 444.4 MB, free: 3.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.1564, allocations: 11.89 kB / 444.4 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.012e-05/0.1564, allocations: 4.875 kB / 444.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.195e-05/0.1565, allocations: 184.2 kB / 444.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.1565, allocations: 384 / 444.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.1566, allocations: 4.375 kB / 444.6 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.1567, allocations: 55.72 kB / 444.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1567, allocations: 3.984 kB / 444.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1567, allocations: 4 kB / 444.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1568, allocations: 7.938 kB / 444.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.717e-05/0.1568, allocations: 15.98 kB / 444.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003235/0.1572, allocations: 264.8 kB / 444.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.982e-05/0.1573, allocations: 30.56 kB / 444.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.37e-05/0.1573, allocations: 20.91 kB / 445 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.1573, allocations: 0 / 445 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.1574, allocations: 34.56 kB / 445 MB, free: 2.969 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1574, allocations: 0 / 445 MB, free: 2.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002167/0.1576, allocations: 69.61 kB / 445.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.1576, allocations: 77.11 kB / 445.1 MB, free: 2.801 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.026e-05/0.1577, allocations: 110 kB / 445.2 MB, free: 2.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.1577, allocations: 25.7 kB / 445.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.06e-05/0.1577, allocations: 88.14 kB / 445.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.1578, allocations: 128 / 445.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.1578, allocations: 21.72 kB / 445.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.468e-05/0.1579, allocations: 314.8 kB / 445.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.279e-05/0.1579, allocations: 12 kB / 445.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.156e-05/0.1579, allocations: 29.7 kB / 445.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.309e-05/0.158, allocations: 28.78 kB / 445.7 MB, free: 2.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.158, allocations: 0 / 445.7 MB, free: 2.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001136/0.1581, allocations: 77.62 kB / 445.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1582, allocations: 4 kB / 445.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1582, allocations: 0 / 445.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1582, allocations: 0 / 445.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.357e-05/0.1583, allocations: 4 kB / 445.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.361e-06/0.1583, allocations: 4.062 kB / 445.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.139e-05/0.1583, allocations: 11.98 kB / 445.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1583, allocations: 0 / 445.8 MB, free: 2.035 MB / 318.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.433e-05/0.1584, allocations: 121.7 kB / 446 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.1584, allocations: 4 kB / 446 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.122e-05/0.1585, allocations: 11.52 kB / 446 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1585, allocations: 0 / 446 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1585, allocations: 0 / 446 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.1585, allocations: 0 / 446 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1586, allocations: 173.6 kB / 446.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1586, allocations: 3.938 kB / 446.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.522e-05/0.1586, allocations: 7.938 kB / 446.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1587, allocations: 0 / 446.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.1587, allocations: 4 kB / 446.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.1587, allocations: 4 kB / 446.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1587, allocations: 3.938 kB / 446.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.1588, allocations: 151.4 kB / 446.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.52e-05/0.1588, allocations: 77.11 kB / 446.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.1589, allocations: 4 kB / 446.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.711e-05/0.1589, allocations: 12.02 kB / 446.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.666e-05/0.159, allocations: 11.98 kB / 446.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.159, allocations: 0 / 446.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.818e-05/0.159, allocations: 87.27 kB / 446.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.159, allocations: 4 kB / 446.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002102/0.1593, allocations: 4 kB / 446.5 MB, free: 1.27 MB / 318.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 7.992e-05/0.1593, allocations: 95.19 kB / 446.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001409/0.1595, allocations: 31.92 kB / 446.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1595, allocations: 0 / 446.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.173e-05/0.1595, allocations: 15.98 kB / 446.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.1598, allocations: 7.938 kB / 446.7 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002592/0.16, allocations: 126.6 kB / 446.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.1602, allocations: 0.6807 MB / 447.5 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.017e-05/0.1602, allocations: 64 / 447.5 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.067e-05/0.1602, allocations: 15.44 kB / 447.5 MB, free: 244 kB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1602, allocations: 0 / 447.5 MB, free: 244 kB / 318.1 MB Notification: Performance of Templates: time 0.002525/0.1628, allocations: 0.5841 MB / 448.1 MB, free: 15.65 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) 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) Reference file matches