Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",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.001287/0.001287, allocations: 106.1 kB / 16.4 MB, free: 6.512 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.001298/0.001298, allocations: 188.2 kB / 17.34 MB, free: 5.738 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.404/1.404, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2197/0.2197, allocations: 43.54 MB / 314.1 MB, free: 460 kB / 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.002046/0.002046, allocations: 78.02 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1042, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002679/0.1069, allocations: 1.519 MB / 0.4889 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009224/0.1078, allocations: 0.523 MB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.218e-05/0.1079, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.662e-05/0.1079, allocations: 7.922 kB / 0.4894 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.214e-05/0.108, allocations: 15.86 kB / 0.4894 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.1082, allocations: 39.89 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000132/0.1084, allocations: 91.7 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.747e-05/0.1085, allocations: 15.97 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.1086, allocations: 39.84 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.839e-05/0.1087, allocations: 43.83 kB / 0.4896 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.1087, allocations: 8 kB / 0.4896 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.634e-05/0.1087, allocations: 4 kB / 0.4896 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.577e-05/0.1088, allocations: 23.91 kB / 0.4897 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.119e-05/0.1088, allocations: 43.78 kB / 0.4897 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.109, allocations: 71.72 kB / 0.4898 GB, free: 9.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.109, allocations: 0 / 0.4898 GB, free: 9.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.109, allocations: 0 / 0.4898 GB, free: 9.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.109, allocations: 7.938 kB / 0.4898 GB, free: 9.84 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006743/0.1097, allocations: 395.2 kB / 0.4902 GB, free: 9.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1097, allocations: 15.89 kB / 0.4902 GB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.847e-05/0.1098, allocations: 34.73 kB / 0.4902 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.329e-05/0.1098, allocations: 16.89 kB / 0.4902 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.11, allocations: 176.3 kB / 0.4904 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.11, allocations: 8.359 kB / 0.4904 GB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.11, allocations: 8.375 kB / 0.4904 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.1102, allocations: 93.7 kB / 0.4905 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1102, allocations: 0 / 0.4905 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1103, allocations: 4 kB / 0.4905 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1103, allocations: 4 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.1104, allocations: 47.91 kB / 0.4905 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005456/0.111, allocations: 324.7 kB / 0.4909 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.1112, allocations: 94.47 kB / 0.4909 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.639e-05/0.1113, allocations: 44.78 kB / 0.491 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.1113, allocations: 0 / 0.491 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.1115, allocations: 99.48 kB / 0.4911 GB, free: 8.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.1116, allocations: 0 / 0.4911 GB, free: 8.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004418/0.112, allocations: 189.6 kB / 0.4913 GB, free: 8.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.1121, allocations: 55.41 kB / 0.4913 GB, free: 8.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.1122, allocations: 117.8 kB / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.1122, allocations: 33.7 kB / 0.4915 GB, free: 7.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.711e-05/0.1123, allocations: 96.36 kB / 0.4916 GB, free: 7.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.648e-05/0.1123, allocations: 43.72 kB / 0.4916 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/0.1124, allocations: 37.7 kB / 0.4916 GB, free: 7.723 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1126, allocations: 318.8 kB / 0.4919 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.78e-05/0.1126, allocations: 35.97 kB / 0.492 GB, free: 7.367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.1128, allocations: 81.12 kB / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.113, allocations: 121 kB / 0.4922 GB, free: 7.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.113, allocations: 0 / 0.4922 GB, free: 7.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002995/0.1133, allocations: 161.6 kB / 0.4923 GB, free: 6.969 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.1133, allocations: 4 kB / 0.4923 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.1134, allocations: 4 kB / 0.4923 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1134, allocations: 3.938 kB / 0.4923 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.1135, allocations: 23.92 kB / 0.4924 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.1135, allocations: 4 kB / 0.4924 GB, free: 6.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.501e-05/0.1136, allocations: 15.89 kB / 0.4924 GB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1136, allocations: 7.984 kB / 0.4924 GB, free: 6.906 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001228/0.1137, allocations: 136.1 kB / 0.4925 GB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.1138, allocations: 7.953 kB / 0.4925 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.1138, allocations: 16.48 kB / 0.4925 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1138, allocations: 3.938 kB / 0.4925 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1138, allocations: 0 / 0.4925 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1138, allocations: 4.359 kB / 0.4925 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005744/0.1144, allocations: 446.3 kB / 0.493 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1144, allocations: 4 kB / 0.493 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.04e-05/0.1145, allocations: 4 kB / 0.493 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1145, allocations: 7.938 kB / 0.493 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.1145, allocations: 3.984 kB / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1145, allocations: 4 kB / 0.493 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1145, allocations: 0 / 0.493 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.1149, allocations: 251.3 kB / 0.4932 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.564e-05/0.1149, allocations: 92.94 kB / 0.4933 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.115, allocations: 12 kB / 0.4933 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1151, allocations: 7.984 kB / 0.4933 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.1151, allocations: 7.984 kB / 0.4933 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.1152, allocations: 8 kB / 0.4934 GB, free: 5.805 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.823e-05/0.1152, allocations: 91.27 kB / 0.4934 GB, free: 5.715 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1152, allocations: 0 / 0.4934 GB, free: 5.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002481/0.1155, allocations: 20 kB / 0.4935 GB, free: 5.695 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0006579/0.1162, allocations: 0.7912 MB / 0.4942 GB, free: 4.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002483/0.1164, allocations: 100 kB / 0.4943 GB, free: 4.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.1164, allocations: 0 / 0.4943 GB, free: 4.781 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.1166, allocations: 64.2 kB / 0.4944 GB, free: 4.719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.1168, allocations: 12 kB / 0.4944 GB, free: 4.707 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.1187, allocations: 1.645 MB / 0.496 GB, free: 2.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.119, allocations: 0.6962 MB / 0.4967 GB, free: 2.223 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.423e-05/0.1191, allocations: 12.88 kB / 0.4967 GB, free: 2.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.267e-05/0.1191, allocations: 35.42 kB / 0.4967 GB, free: 2.176 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1191, allocations: 288 / 0.4967 GB, free: 2.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.1411, allocations: 2.167 MB / 0.4988 GB, free: 12 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/7.821, allocations: 11.91 kB / 0.4989 GB, free: 0 / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches