Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 247.5 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 46.12 MB / 344.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 77.5 kB / 418.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1253, allocations: 62.45 MB / 480.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002892/0.1282, allocations: 1.46 MB / 482.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008598/0.1291, allocations: 474.8 kB / 482.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.588e-05/0.1291, allocations: 7.938 kB / 482.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.261e-05/0.1292, allocations: 0 / 482.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.029e-05/0.1292, allocations: 7.938 kB / 482.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.1295, allocations: 27.89 kB / 482.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.1296, allocations: 43.86 kB / 482.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.929e-05/0.1297, allocations: 4 kB / 482.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.1298, allocations: 19.92 kB / 482.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.407e-05/0.1299, allocations: 19.91 kB / 482.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.1299, allocations: 8 kB / 482.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.322e-05/0.13, allocations: 8 kB / 482.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.795e-05/0.13, allocations: 11.92 kB / 482.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.13, allocations: 15.88 kB / 482.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1301, allocations: 35.88 kB / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1302, allocations: 0 / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1302, allocations: 0 / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1302, allocations: 0 / 482.9 MB, free: 3.094 MB / 350.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.0005428/0.1307, allocations: 355.7 kB / 483.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.1308, allocations: 12.03 kB / 483.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.1309, allocations: 16.83 kB / 483.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.1312, allocations: 184.1 kB / 483.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.712e-06/0.1312, allocations: 384 / 483.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.1312, allocations: 4.375 kB / 483.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/0.1313, allocations: 63.7 kB / 483.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1314, allocations: 0 / 483.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.1314, allocations: 0 / 483.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1314, allocations: 8 kB / 483.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.776e-05/0.1315, allocations: 19.92 kB / 483.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004236/0.1319, allocations: 260.9 kB / 483.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.564e-05/0.132, allocations: 34.5 kB / 483.8 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.212e-05/0.1321, allocations: 20.91 kB / 483.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.1321, allocations: 0 / 483.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.1321, allocations: 30.56 kB / 483.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1321, allocations: 0 / 483.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002478/0.1324, allocations: 69.61 kB / 483.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.1325, allocations: 77.11 kB / 484 MB, free: 1.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.894e-05/0.1326, allocations: 113.8 kB / 484.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.1326, allocations: 29.83 kB / 484.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.1327, allocations: 84.14 kB / 484.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.1327, allocations: 7.906 kB / 484.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.1327, allocations: 14.08 kB / 484.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1329, allocations: 318.8 kB / 484.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.221e-05/0.1329, allocations: 15.98 kB / 484.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.328e-05/0.133, allocations: 21.72 kB / 484.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.44e-05/0.1331, allocations: 40.69 kB / 484.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1331, allocations: 0 / 484.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001326/0.1333, allocations: 61.58 kB / 484.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1333, allocations: 10.5 kB / 484.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1333, allocations: 0 / 484.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.1333, allocations: 0 / 484.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.757e-05/0.1334, allocations: 7.984 kB / 484.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.1334, allocations: 0 / 484.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.659e-05/0.1334, allocations: 8 kB / 484.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.1335, allocations: 0 / 484.7 MB, free: 1.004 MB / 350.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.0001088/0.1336, allocations: 121.8 kB / 484.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.1336, allocations: 4 kB / 484.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.892e-05/0.1336, allocations: 7.531 kB / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1337, allocations: 0 / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1337, allocations: 0 / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.1337, allocations: 144 / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.1339, allocations: 173.5 kB / 485 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.1339, allocations: 4 kB / 485 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.824e-05/0.1339, allocations: 4 kB / 485 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.1339, allocations: 3.984 kB / 485 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1339, allocations: 3.938 kB / 485.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.134, allocations: 0 / 485.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.134, allocations: 0 / 485.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001787/0.1341, allocations: 155.4 kB / 485.2 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.1342, allocations: 85.12 kB / 485.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.1342, allocations: 0 / 485.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.475e-05/0.1343, allocations: 8 kB / 485.3 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.1344, allocations: 3.984 kB / 485.3 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.1344, allocations: 4 kB / 485.3 MB, free: 352 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.316e-05/0.1344, allocations: 87.27 kB / 485.4 MB, free: 264 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1344, allocations: 3.938 kB / 485.4 MB, free: 260 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.1347, allocations: 8 kB / 485.4 MB, free: 252 kB / 350.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.0001157/0.1348, allocations: 99.53 kB / 485.5 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001607/0.135, allocations: 27.97 kB / 485.5 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.135, allocations: 0 / 485.5 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.755e-05/0.135, allocations: 15.94 kB / 485.5 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.1352, allocations: 7.938 kB / 485.5 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003508/0.1356, allocations: 164.2 kB / 485.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.1359, allocations: 0.6768 MB / 486.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.336e-05/0.136, allocations: 15.42 kB / 486.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.136, allocations: 0 / 486.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of Templates: time 0.002173/0.1382, allocations: 0.6667 MB / 487.1 MB, free: 14.52 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches