Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001059/0.001059, allocations: 193.5 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 226.5 MB / 244.1 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007301/0.0007301, allocations: 102.1 kB / 296.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2859/0.2859, allocations: 44.82 MB / 393 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003605, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3102, allocations: 62.95 MB / 0.5165 GB, free: 37.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1047/0.415, allocations: 87.13 MB / 0.6015 GB, free: 2.293 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.4152, allocations: 67.95 kB / 0.6016 GB, free: 2.227 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003046/0.4183, allocations: 1.079 MB / 0.6027 GB, free: 1.152 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4183, allocations: 0 / 0.6027 GB, free: 1.152 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.4183, allocations: 0 / 0.6027 GB, free: 1.152 MB / 410.7 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.0003403/0.4187, allocations: 359.4 kB / 0.603 GB, free: 0.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.4187, allocations: 12.03 kB / 0.603 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.4188, allocations: 16.83 kB / 0.603 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.951e-05/0.4189, allocations: 176.2 kB / 0.6032 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.419, allocations: 384 / 0.6032 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.419, allocations: 4.375 kB / 0.6032 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.4191, allocations: 63.91 kB / 0.6033 GB, free: 444 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.4191, allocations: 192 / 0.6033 GB, free: 444 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.4192, allocations: 11.92 kB / 0.6033 GB, free: 432 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.4192, allocations: 0 / 0.6033 GB, free: 432 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.611e-05/0.4193, allocations: 27.97 kB / 0.6033 GB, free: 404 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003519/0.4196, allocations: 261 kB / 0.6036 GB, free: 92 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.181e-05/0.4197, allocations: 42.44 kB / 0.6036 GB, free: 40 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.676e-05/0.4198, allocations: 16.92 kB / 0.6036 GB, free: 20 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.4198, allocations: 4 kB / 0.6036 GB, free: 16 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.4198, allocations: 34.55 kB / 0.6036 GB, free: 15.97 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.4198, allocations: 0 / 0.6036 GB, free: 15.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002361/0.4201, allocations: 65.69 kB / 0.6037 GB, free: 15.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.4201, allocations: 81.09 kB / 0.6038 GB, free: 15.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.833e-05/0.4202, allocations: 110.2 kB / 0.6039 GB, free: 15.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.4202, allocations: 33.69 kB / 0.6039 GB, free: 15.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.096e-05/0.4203, allocations: 84.14 kB / 0.604 GB, free: 15.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.4203, allocations: 3.906 kB / 0.604 GB, free: 15.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.4203, allocations: 0 / 0.604 GB, free: 15.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4204, allocations: 322.8 kB / 0.6043 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.114e-05/0.4205, allocations: 15.98 kB / 0.6043 GB, free: 15.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.124e-05/0.4206, allocations: 29.7 kB / 0.6044 GB, free: 15.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.849e-05/0.4206, allocations: 28.84 kB / 0.6044 GB, free: 15.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.4207, allocations: 0 / 0.6044 GB, free: 15.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001413/0.4208, allocations: 61.62 kB / 0.6044 GB, free: 15.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.4208, allocations: 4 kB / 0.6044 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.4208, allocations: 7.969 kB / 0.6045 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4209, allocations: 3.984 kB / 0.6045 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.422e-05/0.4209, allocations: 4 kB / 0.6045 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.4209, allocations: 12 kB / 0.6045 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.957e-05/0.421, allocations: 15.98 kB / 0.6045 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.421, allocations: 0 / 0.6045 GB, free: 15.04 MB / 426.7 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 ($PRE.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/0.4211, allocations: 117.8 kB / 0.6046 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.4211, allocations: 7.906 kB / 0.6046 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.185e-05/0.4212, allocations: 7.531 kB / 0.6046 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.4212, allocations: 4 kB / 0.6046 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.4212, allocations: 0 / 0.6046 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.4212, allocations: 0 / 0.6046 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.4213, allocations: 161.6 kB / 0.6048 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.4213, allocations: 0 / 0.6048 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.979e-05/0.4214, allocations: 7.984 kB / 0.6048 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.4214, allocations: 4 kB / 0.6048 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.4214, allocations: 0 / 0.6048 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4214, allocations: 4 kB / 0.6048 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4214, allocations: 0 / 0.6048 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001591/0.4216, allocations: 159.4 kB / 0.6049 GB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.172e-05/0.4216, allocations: 81.02 kB / 0.605 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.4217, allocations: 4 kB / 0.605 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.487e-05/0.4217, allocations: 16.02 kB / 0.605 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.4218, allocations: 7.984 kB / 0.605 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.4218, allocations: 144 / 0.605 GB, free: 14.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.385e-05/0.4218, allocations: 83.28 kB / 0.6051 GB, free: 14.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4219, allocations: 0 / 0.6051 GB, free: 14.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.4221, allocations: 11.98 kB / 0.6051 GB, free: 14.28 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.965e-05/0.4222, allocations: 95.23 kB / 0.6052 GB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.4223, allocations: 35.98 kB / 0.6053 GB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4223, allocations: 0 / 0.6053 GB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.756e-05/0.4224, allocations: 19.92 kB / 0.6053 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.4226, allocations: 10.91 kB / 0.6053 GB, free: 14.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002885/0.4229, allocations: 162.5 kB / 0.6054 GB, free: 13.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.4231, allocations: 0.6809 MB / 0.6061 GB, free: 13.21 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.4232, allocations: 7.438 kB / 0.6061 GB, free: 13.21 MB / 426.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4232, allocations: 0 / 0.6061 GB, free: 13.21 MB / 426.7 MB Notification: Performance of Templates: time 0.001733/0.4249, allocations: 0.6236 MB / 0.6067 GB, free: 12.59 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches