Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 107.6 kB / 17.33 MB, free: 5.996 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.001015/0.001015, allocations: 193.3 kB / 18.25 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2183/0.2183, allocations: 44.18 MB / 336.2 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 69.05 kB / 407.9 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1143, allocations: 60.82 MB / 468.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002601/0.117, allocations: 1.487 MB / 470.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000605/0.1176, allocations: 419.1 kB / 470.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.122e-05/0.1176, allocations: 0 / 470.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.803e-05/0.1177, allocations: 3.938 kB / 470.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.448e-05/0.1177, allocations: 3.938 kB / 470.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001537/0.1179, allocations: 15.98 kB / 470.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.615e-05/0.118, allocations: 31.92 kB / 470.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.497e-05/0.1181, allocations: 8 kB / 470.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.108e-05/0.1182, allocations: 19.91 kB / 470.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.49e-05/0.1182, allocations: 23.92 kB / 470.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.1182, allocations: 0 / 470.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.077e-05/0.1183, allocations: 7.938 kB / 470.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.461e-05/0.1183, allocations: 3.938 kB / 470.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.886e-05/0.1183, allocations: 19.92 kB / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.378e-05/0.1184, allocations: 27.89 kB / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1184, allocations: 0 / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1184, allocations: 0 / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1184, allocations: 0 / 470.8 MB, free: 12.64 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.000382/0.1188, allocations: 355.7 kB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.1188, allocations: 8.031 kB / 471.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.667e-05/0.1189, allocations: 8.844 kB / 471.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.806e-05/0.119, allocations: 168.3 kB / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.119, allocations: 384 / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.119, allocations: 8.312 kB / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.1192, allocations: 55.72 kB / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.1192, allocations: 0 / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.1192, allocations: 7.984 kB / 471.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.1192, allocations: 4 kB / 471.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.156e-05/0.1193, allocations: 19.92 kB / 471.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003487/0.1196, allocations: 264.8 kB / 471.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.228e-05/0.1197, allocations: 30.56 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.716e-05/0.1198, allocations: 20.92 kB / 471.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.1198, allocations: 3.984 kB / 471.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.1198, allocations: 38.5 kB / 471.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1198, allocations: 0 / 471.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002291/0.1201, allocations: 61.67 kB / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.1201, allocations: 81.11 kB / 471.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.913e-05/0.1202, allocations: 114 kB / 472 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.1202, allocations: 25.7 kB / 472 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.701e-05/0.1203, allocations: 88.14 kB / 472.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.1203, allocations: 3.906 kB / 472.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.1203, allocations: 17.72 kB / 472.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.705e-05/0.1204, allocations: 314.8 kB / 472.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.245e-05/0.1205, allocations: 12 kB / 472.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.68e-05/0.1205, allocations: 29.7 kB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.663e-05/0.1206, allocations: 32.72 kB / 472.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1206, allocations: 0 / 472.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001186/0.1208, allocations: 57.67 kB / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.1208, allocations: 6.969 kB / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1208, allocations: 0 / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.1208, allocations: 0 / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.428e-05/0.1209, allocations: 4 kB / 472.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1209, allocations: 32 / 472.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.025e-05/0.121, allocations: 19.98 kB / 472.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-06/0.121, allocations: 3.938 kB / 472.6 MB, free: 10.57 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 7.446e-05/0.121, allocations: 117.7 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.1211, allocations: 4.047 kB / 472.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.1211, allocations: 23.45 kB / 472.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1211, allocations: 0 / 472.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1211, allocations: 3.938 kB / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1211, allocations: 0 / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.1213, allocations: 169.6 kB / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1213, allocations: 0 / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.664e-05/0.1213, allocations: 4 kB / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.1213, allocations: 0 / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1214, allocations: 0 / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1214, allocations: 4 kB / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1214, allocations: 0 / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001481/0.1215, allocations: 155.5 kB / 473.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.427e-05/0.1216, allocations: 81.02 kB / 473.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.1216, allocations: 4 kB / 473.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/0.1217, allocations: 7.984 kB / 473.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.1217, allocations: 7.984 kB / 473.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.1218, allocations: 11.94 kB / 473.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.834e-05/0.1218, allocations: 87.27 kB / 473.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1218, allocations: 0 / 473.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002173/0.122, allocations: 4 kB / 473.3 MB, free: 9.805 MB / 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 9.194e-05/0.1221, allocations: 99.81 kB / 473.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001335/0.1223, allocations: 23.98 kB / 473.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.582e-06/0.1223, allocations: 0 / 473.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.809e-05/0.1223, allocations: 15.98 kB / 473.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.1225, allocations: 10.89 kB / 473.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002748/0.1228, allocations: 142.5 kB / 473.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.123, allocations: 0.6807 MB / 474.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.754e-05/0.1231, allocations: 0 / 474.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.899e-05/0.1231, allocations: 11.44 kB / 474.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1231, allocations: 0 / 474.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of Templates: time 0.002209/0.1253, allocations: 0.5206 MB / 474.8 MB, free: 8.246 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches