Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008768/0.0008768, allocations: 166.8 kB / 16.72 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.166/1.166, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007445/0.0007445, allocations: 82.38 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2837/0.2837, allocations: 43.56 MB / 363.1 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003247/0.0003247, allocations: 12 kB / 432 MB, free: 5.582 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08701/0.08735, allocations: 58.85 MB / 490.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001289/0.08867, allocations: 1.149 MB / 492 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005471/0.08924, allocations: 433.3 kB / 492.4 MB, free: 9.047 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.25e-05/0.08927, allocations: 0 / 492.4 MB, free: 9.047 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.392e-05/0.0893, allocations: 11.92 kB / 492.4 MB, free: 9.035 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.646e-05/0.08935, allocations: 3.938 kB / 492.4 MB, free: 9.031 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.0895, allocations: 8 kB / 492.4 MB, free: 9.023 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.945e-05/0.08956, allocations: 31.91 kB / 492.4 MB, free: 8.992 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.458e-05/0.08965, allocations: 3.984 kB / 492.4 MB, free: 8.988 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.076e-05/0.08973, allocations: 15.94 kB / 492.5 MB, free: 8.973 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.51e-05/0.08979, allocations: 19.86 kB / 492.5 MB, free: 8.953 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.08981, allocations: 4 kB / 492.5 MB, free: 8.949 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.869e-06/0.08983, allocations: 4 kB / 492.5 MB, free: 8.945 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.08985, allocations: 7.969 kB / 492.5 MB, free: 8.938 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.033e-05/0.08988, allocations: 37.64 kB / 492.5 MB, free: 8.895 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.172e-05/0.08994, allocations: 23.95 kB / 492.6 MB, free: 8.871 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.08995, allocations: 0 / 492.6 MB, free: 8.871 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08996, allocations: 0 / 492.6 MB, free: 8.871 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.966e-06/0.08996, allocations: 0 / 492.6 MB, free: 8.871 MB / 378.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.0003603/0.09033, allocations: 343.7 kB / 492.9 MB, free: 8.488 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.09037, allocations: 12.03 kB / 492.9 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.09041, allocations: 16.77 kB / 492.9 MB, free: 8.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.852e-05/0.0905, allocations: 168.3 kB / 493.1 MB, free: 8.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.263e-06/0.09051, allocations: 384 / 493.1 MB, free: 8.258 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.09053, allocations: 4.375 kB / 493.1 MB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.09068, allocations: 67.7 kB / 493.2 MB, free: 8.176 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.09069, allocations: 3.984 kB / 493.2 MB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.09071, allocations: 4 kB / 493.2 MB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.09072, allocations: 0 / 493.2 MB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.576e-05/0.09081, allocations: 23.98 kB / 493.2 MB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003376/0.09115, allocations: 272.7 kB / 493.5 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.828e-05/0.09124, allocations: 34.58 kB / 493.5 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.637e-05/0.0913, allocations: 16.91 kB / 493.5 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.09132, allocations: 0 / 493.5 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.09134, allocations: 30.56 kB / 493.5 MB, free: 7.727 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.09135, allocations: 0 / 493.5 MB, free: 7.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002186/0.09157, allocations: 77.61 kB / 493.6 MB, free: 7.645 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.09162, allocations: 77.11 kB / 493.7 MB, free: 7.551 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.336e-05/0.09169, allocations: 113.8 kB / 493.8 MB, free: 7.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.09172, allocations: 29.7 kB / 493.8 MB, free: 7.395 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.301e-05/0.09176, allocations: 80.14 kB / 493.9 MB, free: 7.312 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.09178, allocations: 15.89 kB / 493.9 MB, free: 7.297 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.09179, allocations: 0 / 493.9 MB, free: 7.297 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.021e-05/0.09187, allocations: 319 kB / 494.2 MB, free: 6.977 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.524e-05/0.09192, allocations: 12 kB / 494.2 MB, free: 6.965 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.53e-05/0.09199, allocations: 29.7 kB / 494.3 MB, free: 6.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.646e-05/0.09207, allocations: 36.72 kB / 494.3 MB, free: 6.891 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.09208, allocations: 7.969 kB / 494.3 MB, free: 6.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000118/0.0922, allocations: 57.67 kB / 494.4 MB, free: 6.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.09222, allocations: 7.281 kB / 494.4 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.09224, allocations: 4 kB / 494.4 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.156e-06/0.09225, allocations: 0 / 494.4 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.044e-05/0.09231, allocations: 4 kB / 494.4 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.09233, allocations: 0 / 494.4 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.337e-05/0.09239, allocations: 23.89 kB / 494.4 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.09241, allocations: 0 / 494.4 MB, free: 6.785 MB / 378.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.002e-05/0.09248, allocations: 113.8 kB / 494.5 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.09251, allocations: 0 / 494.5 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.928e-05/0.09254, allocations: 15.52 kB / 494.5 MB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.09254, allocations: 0 / 494.5 MB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.09255, allocations: 0 / 494.5 MB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.09256, allocations: 0 / 494.5 MB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.09269, allocations: 165.6 kB / 494.7 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.0927, allocations: 4 kB / 494.7 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.09275, allocations: 11.88 kB / 494.7 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.09276, allocations: 0 / 494.7 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.09277, allocations: 4 kB / 494.7 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.09278, allocations: 0 / 494.7 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.09278, allocations: 0 / 494.7 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001505/0.09294, allocations: 159.5 kB / 494.9 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.379e-05/0.09298, allocations: 85.02 kB / 495 MB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.093, allocations: 0 / 495 MB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.19e-05/0.0931, allocations: 11.98 kB / 495 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.09314, allocations: 8.125 kB / 495 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.09315, allocations: 0 / 495 MB, free: 6.129 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.697e-05/0.09319, allocations: 91.27 kB / 495.1 MB, free: 6.039 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.0932, allocations: 4.031 kB / 495.1 MB, free: 6.035 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001982/0.0934, allocations: 4 kB / 495.1 MB, free: 6.031 MB / 378.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 8.171e-05/0.09349, allocations: 107.2 kB / 495.2 MB, free: 5.918 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001287/0.09363, allocations: 31.92 kB / 495.2 MB, free: 5.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.09364, allocations: 0 / 495.2 MB, free: 5.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.173e-05/0.09369, allocations: 23.98 kB / 495.2 MB, free: 5.863 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.09389, allocations: 11.67 kB / 495.2 MB, free: 5.855 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002427/0.09414, allocations: 154.3 kB / 495.4 MB, free: 5.672 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.09434, allocations: 0.6809 MB / 496.1 MB, free: 4.965 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.09437, allocations: 11.42 kB / 496.1 MB, free: 4.957 MB / 378.7 MB Notification: Performance of SimCode: time 1.733e-06/0.09438, allocations: 0 / 496.1 MB, free: 4.957 MB / 378.7 MB Notification: Performance of Templates: time 0.001586/0.09597, allocations: 0.6291 MB / 496.7 MB, free: 4.328 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches