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.001157/0.001157, allocations: 106 kB / 16.27 MB, free: 5.93 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.001198/0.001198, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.467/1.467, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2249/0.2249, allocations: 43.52 MB / 313.9 MB, free: 0.5273 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.00144/0.00144, allocations: 67.58 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1146, allocations: 57.79 MB / 440.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002353/0.117, allocations: 1.432 MB / 442 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006243/0.1176, allocations: 454.7 kB / 442.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.889e-05/0.1177, allocations: 0 / 442.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.656e-05/0.1177, allocations: 0 / 442.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.474e-05/0.1178, allocations: 19.86 kB / 442.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001659/0.1179, allocations: 11.98 kB / 442.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.261e-05/0.118, allocations: 43.84 kB / 442.6 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.1181, allocations: 8.266 kB / 442.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.809e-05/0.1182, allocations: 15.92 kB / 442.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.377e-05/0.1183, allocations: 19.92 kB / 442.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.1183, allocations: 0 / 442.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.067e-05/0.1183, allocations: 4 kB / 442.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.618e-05/0.1183, allocations: 11.92 kB / 442.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.1184, allocations: 23.86 kB / 442.6 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.035e-05/0.1184, allocations: 31.84 kB / 442.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1184, allocations: 0 / 442.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1184, allocations: 0 / 442.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1185, allocations: 0 / 442.7 MB, free: 4.746 MB / 318.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.000357/0.1188, allocations: 348.6 kB / 443 MB, free: 4.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1189, allocations: 11.89 kB / 443 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.406e-05/0.1189, allocations: 30.75 kB / 443.1 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.792e-05/0.1189, allocations: 4.938 kB / 443.1 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.184e-05/0.119, allocations: 180.2 kB / 443.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.119, allocations: 4.375 kB / 443.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.119, allocations: 384 / 443.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001438/0.1192, allocations: 71.45 kB / 443.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1192, allocations: 0 / 443.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.1192, allocations: 0 / 443.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1192, allocations: 0 / 443.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.549e-05/0.1193, allocations: 19.98 kB / 443.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003067/0.1196, allocations: 260.9 kB / 443.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.644e-05/0.1197, allocations: 38.5 kB / 443.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.11e-05/0.1198, allocations: 12.91 kB / 443.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.1198, allocations: 0 / 443.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.1198, allocations: 38.56 kB / 443.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1198, allocations: 0 / 443.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.00021/0.12, allocations: 65.58 kB / 443.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.1201, allocations: 77.11 kB / 443.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.259e-05/0.1201, allocations: 113.8 kB / 443.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.1201, allocations: 29.7 kB / 444 MB, free: 3.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.952e-05/0.1202, allocations: 80.14 kB / 444 MB, free: 3.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.1202, allocations: 12.12 kB / 444 MB, free: 3.156 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.1202, allocations: 13.66 kB / 444.1 MB, free: 3.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.705e-05/0.1203, allocations: 326.8 kB / 444.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.355e-05/0.1203, allocations: 8 kB / 444.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.352e-05/0.1204, allocations: 29.7 kB / 444.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.755e-05/0.1205, allocations: 24.84 kB / 444.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1205, allocations: 8.031 kB / 444.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001054/0.1206, allocations: 61.58 kB / 444.5 MB, free: 2.664 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.1206, allocations: 11.94 kB / 444.5 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1206, allocations: 0 / 444.5 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.1206, allocations: 0 / 444.5 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.768e-05/0.1207, allocations: 4 kB / 444.5 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1207, allocations: 0 / 444.5 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.158e-05/0.1208, allocations: 7.984 kB / 444.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.1208, allocations: 3.938 kB / 444.5 MB, free: 2.637 MB / 318.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 5.302e-05/0.1208, allocations: 125.7 kB / 444.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.1209, allocations: 4 kB / 444.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.264e-05/0.1209, allocations: 7.656 kB / 444.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1209, allocations: 3.984 kB / 444.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1209, allocations: 0 / 444.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1209, allocations: 0 / 444.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.121, allocations: 169.6 kB / 444.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.121, allocations: 0 / 444.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.554e-05/0.1211, allocations: 4 kB / 444.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1211, allocations: 4 kB / 444.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.1211, allocations: 0 / 444.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1211, allocations: 0 / 444.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1211, allocations: 3.984 kB / 444.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.1212, allocations: 151.3 kB / 445 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.081e-05/0.1213, allocations: 89.05 kB / 445.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.1213, allocations: 0 / 445.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.093e-05/0.1214, allocations: 12.02 kB / 445.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.1214, allocations: 7.984 kB / 445.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.1214, allocations: 0 / 445.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.542e-05/0.1215, allocations: 91.27 kB / 445.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1215, allocations: 0 / 445.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002107/0.1217, allocations: 4 kB / 445.2 MB, free: 1.879 MB / 318.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.0002893/0.122, allocations: 0.6927 MB / 445.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001373/0.1221, allocations: 23.98 kB / 445.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1221, allocations: 4 kB / 445.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.185e-05/0.1222, allocations: 8 kB / 445.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.1224, allocations: 7.984 kB / 445.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003493/0.1227, allocations: 152.5 kB / 446.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.965e-05/0.1228, allocations: 0.6806 MB / 446.8 MB, free: 224 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.717e-05/0.1229, allocations: 4 kB / 446.8 MB, free: 220 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.1229, allocations: 15.42 kB / 446.8 MB, free: 204 kB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1229, allocations: 0 / 446.8 MB, free: 204 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.1411, allocations: 1.467 MB / 448.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.795, allocations: 9.156 kB / 448.3 MB, free: 14.73 MB / 334.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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches