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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 114.5 kB / 17.08 MB, free: 5.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 191.7 kB / 20.03 MB, free: 3.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205.1 MB / 227.9 MB, free: 4.336 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3478/0.3478, allocations: 43.51 MB / 320.8 MB, free: 8.988 MB / 254.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002386/0.002386, allocations: 63.91 kB / 450 MB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3309, allocations: 57.78 MB / 0.4959 GB, free: 19.47 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003192/0.3342, allocations: 1.448 MB / 0.4973 GB, free: 18.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008584/0.3351, allocations: 455.8 kB / 0.4977 GB, free: 17.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.158e-05/0.3352, allocations: 0 / 0.4977 GB, free: 17.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.244e-05/0.3352, allocations: 7.875 kB / 0.4977 GB, free: 17.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.3353, allocations: 9.375 kB / 0.4978 GB, free: 17.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.3356, allocations: 13.31 kB / 0.4978 GB, free: 17.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.904e-05/0.3357, allocations: 38.67 kB / 0.4978 GB, free: 17.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.3358, allocations: 7.688 kB / 0.4978 GB, free: 17.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.3359, allocations: 23.06 kB / 0.4978 GB, free: 17.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.463e-05/0.336, allocations: 16.45 kB / 0.4978 GB, free: 17.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.3361, allocations: 3.281 kB / 0.4978 GB, free: 17.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.515e-05/0.3361, allocations: 2.25 kB / 0.4979 GB, free: 17.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.333e-05/0.3361, allocations: 1.125 kB / 0.4979 GB, free: 17.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.865e-05/0.3362, allocations: 23.58 kB / 0.4979 GB, free: 17.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.3363, allocations: 28.2 kB / 0.4979 GB, free: 17.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3363, allocations: 0 / 0.4979 GB, free: 17.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3363, allocations: 0 / 0.4979 GB, free: 17.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3363, allocations: 1.219 kB / 0.4979 GB, free: 17.87 MB / 382.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.0004781/0.3368, allocations: 347.2 kB / 0.4982 GB, free: 17.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.3369, allocations: 13.73 kB / 0.4982 GB, free: 17.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.24e-05/0.3369, allocations: 34.75 kB / 0.4983 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.3369, allocations: 12.08 kB / 0.4983 GB, free: 17.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.3371, allocations: 170.5 kB / 0.4985 GB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.3371, allocations: 1.375 kB / 0.4985 GB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.3371, allocations: 1.5 kB / 0.4985 GB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000173/0.3373, allocations: 65.61 kB / 0.4985 GB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.3373, allocations: 0 / 0.4985 GB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.3373, allocations: 1.469 kB / 0.4985 GB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3373, allocations: 3.984 kB / 0.4985 GB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.781e-05/0.3374, allocations: 23.89 kB / 0.4985 GB, free: 17.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004017/0.3378, allocations: 261.6 kB / 0.4988 GB, free: 16.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.179e-05/0.3379, allocations: 32.06 kB / 0.4988 GB, free: 16.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.822e-05/0.338, allocations: 23.72 kB / 0.4988 GB, free: 16.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.338, allocations: 0 / 0.4988 GB, free: 16.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.338, allocations: 35.72 kB / 0.4989 GB, free: 16.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3381, allocations: 0 / 0.4989 GB, free: 16.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002653/0.3383, allocations: 70.78 kB / 0.499 GB, free: 16.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.3384, allocations: 78.2 kB / 0.499 GB, free: 16.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.602e-05/0.3385, allocations: 112.1 kB / 0.4991 GB, free: 16.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.3385, allocations: 25.7 kB / 0.4992 GB, free: 16.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.69e-05/0.3385, allocations: 86.45 kB / 0.4992 GB, free: 16.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.3385, allocations: 13.12 kB / 0.4993 GB, free: 16.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.3386, allocations: 21.33 kB / 0.4993 GB, free: 16.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.878e-05/0.3387, allocations: 320 kB / 0.4996 GB, free: 16.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.99e-05/0.3387, allocations: 14.95 kB / 0.4996 GB, free: 16.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.032e-05/0.3388, allocations: 21.69 kB / 0.4996 GB, free: 16.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.911e-05/0.3389, allocations: 24.72 kB / 0.4996 GB, free: 16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3389, allocations: 5.219 kB / 0.4996 GB, free: 16 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001294/0.339, allocations: 63.98 kB / 0.4997 GB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.339, allocations: 4.875 kB / 0.4997 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.339, allocations: 0 / 0.4997 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.413e-05/0.3391, allocations: 1.188 kB / 0.4997 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.041e-05/0.3392, allocations: 3.594 kB / 0.4997 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.3392, allocations: 3.984 kB / 0.4997 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.83e-05/0.3392, allocations: 9.75 kB / 0.4997 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.3392, allocations: 0 / 0.4997 GB, free: 15.94 MB / 382.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.341e-05/0.3393, allocations: 125.2 kB / 0.4998 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.693e-05/0.3394, allocations: 6.141 kB / 0.4998 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.929e-05/0.3394, allocations: 8.656 kB / 0.4999 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3394, allocations: 1.156 kB / 0.4999 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3394, allocations: 0 / 0.4999 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3394, allocations: 3.938 kB / 0.4999 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.3396, allocations: 163.3 kB / 0.5 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3396, allocations: 1.062 kB / 0.5 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.056e-05/0.3396, allocations: 2.5 kB / 0.5 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3396, allocations: 5.156 kB / 0.5 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3397, allocations: 11.92 kB / 0.5 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.3397, allocations: 0.9375 kB / 0.5 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3397, allocations: 0 / 0.5 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.3398, allocations: 145.5 kB / 0.5002 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.792e-05/0.3399, allocations: 82.28 kB / 0.5003 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.3399, allocations: 5.078 kB / 0.5003 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.287e-05/0.34, allocations: 9.312 kB / 0.5003 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.34, allocations: 10.2 kB / 0.5003 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-06/0.34, allocations: 5.062 kB / 0.5003 GB, free: 15.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.821e-05/0.3401, allocations: 86.27 kB / 0.5004 GB, free: 15.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3401, allocations: 0 / 0.5004 GB, free: 15.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002205/0.3403, allocations: 9.562 kB / 0.5004 GB, free: 15.23 MB / 382.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.0003405/0.3407, allocations: 0.687 MB / 0.501 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001665/0.3408, allocations: 29.44 kB / 0.5011 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3409, allocations: 0 / 0.5011 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.081e-05/0.3409, allocations: 15.58 kB / 0.5011 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.3411, allocations: 2.219 kB / 0.5011 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004561/0.3416, allocations: 163.4 kB / 0.5012 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.3417, allocations: 0.6787 MB / 0.5019 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.621e-05/0.3418, allocations: 1.594 kB / 0.5019 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.548e-05/0.3418, allocations: 17.98 kB / 0.5019 GB, free: 13.64 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3418, allocations: 0 / 0.5019 GB, free: 13.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.3654, allocations: 1.498 MB / 0.5034 GB, free: 12.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/8.523, allocations: 10.14 kB / 0.5034 GB, free: 12.7 MB / 382.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.341656722826883]