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) 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 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 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 101.7 kB / 15.98 MB, free: 6.348 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.001344/0.001344, allocations: 194.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3217/0.3217, allocations: 43.49 MB / 313.6 MB, free: 8.562 MB / 254.1 MB 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.001411/0.001411, allocations: 67.91 kB / 382.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1171, allocations: 57.78 MB / 440.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002743/0.1199, allocations: 1.498 MB / 441.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007576/0.1207, allocations: 455.9 kB / 442 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.092e-05/0.1207, allocations: 0 / 442 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.124e-05/0.1207, allocations: 0 / 442 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.895e-05/0.1208, allocations: 7.922 kB / 442.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.121, allocations: 11.98 kB / 442.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.639e-05/0.1211, allocations: 39.8 kB / 442.1 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.852e-05/0.1212, allocations: 8 kB / 442.1 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.207e-05/0.1213, allocations: 27.91 kB / 442.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.235e-05/0.1213, allocations: 15.98 kB / 442.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.1214, allocations: 0 / 442.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.074e-05/0.1214, allocations: 7.938 kB / 442.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.345e-05/0.1214, allocations: 0 / 442.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.1214, allocations: 19.92 kB / 442.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.674e-05/0.1215, allocations: 28.17 kB / 442.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1215, allocations: 0 / 442.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1215, allocations: 0 / 442.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1215, allocations: 0 / 442.2 MB, free: 12.52 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.0004409/0.122, allocations: 359.3 kB / 442.6 MB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.122, allocations: 11.89 kB / 442.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.185e-05/0.1221, allocations: 34.73 kB / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.718e-05/0.1221, allocations: 12.86 kB / 442.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.1222, allocations: 168.2 kB / 442.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.1222, allocations: 4.375 kB / 442.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.1222, allocations: 384 / 442.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.1224, allocations: 67.45 kB / 442.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.1224, allocations: 4 kB / 442.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.1224, allocations: 4 kB / 442.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1225, allocations: 0 / 442.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.52e-05/0.1226, allocations: 19.98 kB / 442.9 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.123, allocations: 256.9 kB / 443.1 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.413e-05/0.123, allocations: 42.45 kB / 443.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.485e-05/0.1231, allocations: 16.91 kB / 443.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.1231, allocations: 0 / 443.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.1232, allocations: 34.56 kB / 443.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.1232, allocations: 0 / 443.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002306/0.1234, allocations: 61.67 kB / 443.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.1235, allocations: 85.17 kB / 443.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.436e-05/0.1236, allocations: 109.8 kB / 443.5 MB, free: 11.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.1236, allocations: 29.7 kB / 443.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.671e-05/0.1237, allocations: 84.14 kB / 443.6 MB, free: 10.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.1237, allocations: 0 / 443.6 MB, free: 10.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/0.1238, allocations: 21.7 kB / 443.6 MB, free: 10.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1239, allocations: 318.8 kB / 443.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.159e-05/0.124, allocations: 11.98 kB / 443.9 MB, free: 10.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.509e-05/0.1241, allocations: 33.7 kB / 444 MB, free: 10.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.1242, allocations: 20.84 kB / 444 MB, free: 10.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.1242, allocations: 8 kB / 444 MB, free: 10.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000128/0.1243, allocations: 61.53 kB / 444 MB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1244, allocations: 4 kB / 444.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1244, allocations: 4 kB / 444.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1244, allocations: 0 / 444.1 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.206e-05/0.1245, allocations: 8.016 kB / 444.1 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.1245, allocations: 4 kB / 444.1 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.401e-05/0.1245, allocations: 4 kB / 444.1 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.1246, allocations: 3.984 kB / 444.1 MB, free: 10.4 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 8.676e-05/0.1247, allocations: 113.8 kB / 444.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.1247, allocations: 0 / 444.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.181e-05/0.1247, allocations: 11.53 kB / 444.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1247, allocations: 144 / 444.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1247, allocations: 4 kB / 444.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1247, allocations: 3.984 kB / 444.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.1249, allocations: 165.6 kB / 444.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1249, allocations: 3.938 kB / 444.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.676e-05/0.125, allocations: 0 / 444.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.125, allocations: 7.984 kB / 444.4 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.125, allocations: 4 kB / 444.4 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.125, allocations: 3.938 kB / 444.4 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.125, allocations: 0 / 444.4 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.1252, allocations: 155.3 kB / 444.5 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.302e-05/0.1252, allocations: 85.09 kB / 444.6 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.1252, allocations: 0 / 444.6 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.053e-05/0.1253, allocations: 4 kB / 444.6 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.1254, allocations: 11.98 kB / 444.6 MB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-06/0.1254, allocations: 0 / 444.6 MB, free: 9.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.548e-05/0.1254, allocations: 91.27 kB / 444.7 MB, free: 9.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1254, allocations: 4.031 kB / 444.7 MB, free: 9.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.1257, allocations: 4 kB / 444.7 MB, free: 9.648 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.0004676/0.1261, allocations: 0.6927 MB / 445.4 MB, free: 8.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001534/0.1263, allocations: 28.02 kB / 445.5 MB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1263, allocations: 0 / 445.5 MB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.827e-05/0.1264, allocations: 15.98 kB / 445.5 MB, free: 8.887 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.1266, allocations: 4 kB / 445.5 MB, free: 8.883 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004562/0.1271, allocations: 172.1 kB / 445.6 MB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.1274, allocations: 0.6846 MB / 446.3 MB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.158e-05/0.1274, allocations: 3.984 kB / 446.3 MB, free: 7.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.628e-05/0.1274, allocations: 15.44 kB / 446.3 MB, free: 7.941 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1275, allocations: 0 / 446.3 MB, free: 7.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1422/0.2697, allocations: 1.327 MB / 447.7 MB, free: 6.625 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/0.27, allocations: 182.8 kB / 447.9 MB, free: 6.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.235, allocations: 0 / 447.9 MB, free: 6.367 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches