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.001273/0.001273, allocations: 104 kB / 16.27 MB, free: 6.043 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.001214/0.001214, allocations: 190.8 kB / 17.2 MB, free: 5.688 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.517/1.517, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2363/0.2363, allocations: 43.52 MB / 313.9 MB, free: 0.5391 MB / 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.001612/0.001612, allocations: 75.95 kB / 382.7 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1197, allocations: 57.79 MB / 440.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.0027/0.1224, allocations: 1.428 MB / 441.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007059/0.1232, allocations: 466.6 kB / 442.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.434e-05/0.1232, allocations: 0 / 442.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.583e-05/0.1233, allocations: 0 / 442.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.23e-05/0.1233, allocations: 15.92 kB / 442.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.1235, allocations: 11.92 kB / 442.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.919e-05/0.1236, allocations: 35.86 kB / 442.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.846e-05/0.1237, allocations: 8 kB / 442.5 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.119e-05/0.1238, allocations: 23.91 kB / 442.5 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.697e-05/0.1239, allocations: 15.92 kB / 442.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.1239, allocations: 0 / 442.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.1239, allocations: 4 kB / 442.5 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.1239, allocations: 3.938 kB / 442.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.599e-05/0.124, allocations: 19.92 kB / 442.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.857e-05/0.1241, allocations: 44.05 kB / 442.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1241, allocations: 0 / 442.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1241, allocations: 0 / 442.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1241, allocations: 4 kB / 442.6 MB, free: 4.848 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.0004705/0.1246, allocations: 347.4 kB / 442.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1246, allocations: 11.89 kB / 442.9 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.1247, allocations: 4.938 kB / 442.9 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.935e-05/0.1248, allocations: 168.2 kB / 443.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1248, allocations: 12.38 kB / 443.1 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.1248, allocations: 384 / 443.1 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001603/0.125, allocations: 59.7 kB / 443.2 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.125, allocations: 7.938 kB / 443.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.125, allocations: 0 / 443.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.125, allocations: 0 / 443.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.381e-05/0.1251, allocations: 19.98 kB / 443.2 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000382/0.1255, allocations: 264.9 kB / 443.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.428e-05/0.1256, allocations: 26.58 kB / 443.5 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.3e-05/0.1257, allocations: 16.91 kB / 443.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.1257, allocations: 4 kB / 443.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.1257, allocations: 34.5 kB / 443.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.1257, allocations: 8 kB / 443.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002377/0.126, allocations: 57.67 kB / 443.6 MB, free: 3.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.126, allocations: 77.11 kB / 443.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.848e-05/0.1261, allocations: 117.7 kB / 443.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.22e-05/0.1261, allocations: 29.7 kB / 443.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/0.1261, allocations: 84.14 kB / 443.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.1262, allocations: 0 / 443.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.1262, allocations: 25.77 kB / 443.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.945e-05/0.1263, allocations: 318.8 kB / 444.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.404e-05/0.1263, allocations: 11.98 kB / 444.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.567e-05/0.1264, allocations: 25.66 kB / 444.3 MB, free: 2.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.135e-05/0.1264, allocations: 32.77 kB / 444.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1265, allocations: 0 / 444.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001104/0.1266, allocations: 61.77 kB / 444.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1266, allocations: 4 kB / 444.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1266, allocations: 4 kB / 444.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1266, allocations: 3.984 kB / 444.4 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.794e-05/0.1267, allocations: 7.984 kB / 444.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1267, allocations: 4 kB / 444.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.292e-05/0.1268, allocations: 4 kB / 444.4 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.1268, allocations: 3.984 kB / 444.4 MB, free: 2.785 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 6.165e-05/0.1268, allocations: 130.8 kB / 444.5 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.1269, allocations: 3.938 kB / 444.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.236e-05/0.1269, allocations: 11.53 kB / 444.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1269, allocations: 0 / 444.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1269, allocations: 0 / 444.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1269, allocations: 0 / 444.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.1271, allocations: 165.6 kB / 444.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1271, allocations: 0 / 444.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.791e-05/0.1271, allocations: 0 / 444.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1271, allocations: 7.984 kB / 444.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.1271, allocations: 0 / 444.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1271, allocations: 4 kB / 444.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1272, allocations: 0 / 444.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001251/0.1273, allocations: 155.4 kB / 444.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.376e-05/0.1273, allocations: 85.09 kB / 444.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/0.1273, allocations: 0 / 444.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.703e-05/0.1274, allocations: 7.938 kB / 445 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.692e-05/0.1275, allocations: 12.02 kB / 445 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.1275, allocations: 0 / 445 MB, free: 2.121 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.423e-05/0.1275, allocations: 91.27 kB / 445.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1275, allocations: 0 / 445.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002146/0.1278, allocations: 4 kB / 445.1 MB, free: 2.027 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 0.0001051/0.1279, allocations: 103.1 kB / 445.2 MB, free: 1.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.128, allocations: 23.98 kB / 445.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1281, allocations: 8 kB / 445.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.892e-05/0.1281, allocations: 15.98 kB / 445.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.1283, allocations: 3.938 kB / 445.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000311/0.1287, allocations: 126.6 kB / 445.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001333/0.1288, allocations: 0.6768 MB / 446 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.232e-05/0.1288, allocations: 8.062 kB / 446 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.156e-05/0.1289, allocations: 15.42 kB / 446 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1289, allocations: 0 / 446 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of Templates: time 0.003073/0.132, allocations: 0.5842 MB / 446.6 MB, free: 416 kB / 318.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches