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.001269/0.001269, allocations: 109.9 kB / 16.41 MB, free: 6.496 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.001301/0.0013, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.342/1.342, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2042/0.2042, allocations: 43.52 MB / 314.1 MB, free: 480 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.001961/0.001961, allocations: 71.91 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1027, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002704/0.1054, allocations: 1.527 MB / 0.4889 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000899/0.1063, allocations: 0.523 MB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.675e-05/0.1064, allocations: 3.938 kB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.047e-05/0.1064, allocations: 7.922 kB / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.446e-05/0.1065, allocations: 11.86 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.1067, allocations: 35.91 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.1069, allocations: 95.69 kB / 0.4895 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.107, allocations: 19.97 kB / 0.4896 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1071, allocations: 35.86 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.666e-05/0.1072, allocations: 43.81 kB / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.1072, allocations: 8 kB / 0.4896 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.593e-05/0.1072, allocations: 4 kB / 0.4896 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.267e-05/0.1073, allocations: 19.92 kB / 0.4897 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.1074, allocations: 39.8 kB / 0.4897 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.1075, allocations: 71.7 kB / 0.4898 GB, free: 9.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1075, allocations: 0 / 0.4898 GB, free: 9.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1075, allocations: 8 kB / 0.4898 GB, free: 9.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1076, allocations: 0 / 0.4898 GB, free: 9.871 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.0006822/0.1082, allocations: 398.6 kB / 0.4902 GB, free: 9.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1083, allocations: 15.89 kB / 0.4902 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.114e-05/0.1083, allocations: 38.73 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.1084, allocations: 8.891 kB / 0.4902 GB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.1085, allocations: 184.2 kB / 0.4904 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.1086, allocations: 8.359 kB / 0.4904 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.966e-05/0.1086, allocations: 12.31 kB / 0.4904 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.1088, allocations: 85.77 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1088, allocations: 0 / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.1088, allocations: 4 kB / 0.4905 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1088, allocations: 0 / 0.4905 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.109, allocations: 47.91 kB / 0.4905 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005532/0.1095, allocations: 328.7 kB / 0.4909 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.1097, allocations: 90.48 kB / 0.4909 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.02e-05/0.1098, allocations: 40.84 kB / 0.491 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.1098, allocations: 3.984 kB / 0.491 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.1101, allocations: 111.4 kB / 0.4911 GB, free: 8.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.1101, allocations: 0 / 0.4911 GB, free: 8.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004277/0.1105, allocations: 185.6 kB / 0.4913 GB, free: 8.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.1106, allocations: 59.41 kB / 0.4913 GB, free: 8.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.1107, allocations: 113.8 kB / 0.4914 GB, free: 7.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.1107, allocations: 37.69 kB / 0.4915 GB, free: 7.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.147e-05/0.1108, allocations: 88.38 kB / 0.4916 GB, free: 7.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.1108, allocations: 39.73 kB / 0.4916 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/0.1109, allocations: 37.7 kB / 0.4916 GB, free: 7.758 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.111, allocations: 326.8 kB / 0.4919 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.551e-05/0.1111, allocations: 35.92 kB / 0.492 GB, free: 7.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.1112, allocations: 77.12 kB / 0.4921 GB, free: 7.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.1115, allocations: 121.1 kB / 0.4922 GB, free: 7.164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1115, allocations: 0 / 0.4922 GB, free: 7.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002664/0.1117, allocations: 161.7 kB / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.1118, allocations: 4 kB / 0.4923 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.1118, allocations: 8 kB / 0.4923 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.1118, allocations: 3.938 kB / 0.4923 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1119, allocations: 23.92 kB / 0.4924 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.954e-06/0.1119, allocations: 4 kB / 0.4924 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.22e-05/0.112, allocations: 19.88 kB / 0.4924 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.112, allocations: 4 kB / 0.4924 GB, free: 6.934 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.0001073/0.1121, allocations: 136.4 kB / 0.4925 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.1121, allocations: 7.953 kB / 0.4925 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.175e-05/0.1122, allocations: 12.5 kB / 0.4925 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1122, allocations: 7.922 kB / 0.4925 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.1122, allocations: 3.938 kB / 0.4925 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1122, allocations: 0 / 0.4925 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.1128, allocations: 446.3 kB / 0.493 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1128, allocations: 0 / 0.493 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.129e-05/0.1128, allocations: 8 kB / 0.493 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1128, allocations: 8 kB / 0.493 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1129, allocations: 3.984 kB / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1129, allocations: 0 / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1129, allocations: 0 / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.1132, allocations: 247.4 kB / 0.4932 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.689e-05/0.1133, allocations: 92.94 kB / 0.4933 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.1133, allocations: 8 kB / 0.4933 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.1134, allocations: 15.92 kB / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.1135, allocations: 7.984 kB / 0.4933 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.1135, allocations: 4 kB / 0.4934 GB, free: 5.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.529e-05/0.1136, allocations: 95.27 kB / 0.4934 GB, free: 5.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1136, allocations: 0 / 0.4934 GB, free: 5.746 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.1138, allocations: 16 kB / 0.4935 GB, free: 5.73 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.000657/0.1145, allocations: 0.7951 MB / 0.4942 GB, free: 4.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002469/0.1147, allocations: 99.88 kB / 0.4943 GB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1148, allocations: 4 kB / 0.4943 GB, free: 4.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.1149, allocations: 56.05 kB / 0.4944 GB, free: 4.754 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.1151, allocations: 22.94 kB / 0.4944 GB, free: 4.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.117, allocations: 1.641 MB / 0.496 GB, free: 2.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.1173, allocations: 0.7001 MB / 0.4967 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.824e-05/0.1174, allocations: 8.891 kB / 0.4967 GB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.116e-05/0.1174, allocations: 35.36 kB / 0.4967 GB, free: 2.207 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1174, allocations: 0 / 0.4967 GB, free: 2.207 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.1401, allocations: 2.168 MB / 0.4989 GB, free: 36 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/7.91, allocations: 11.91 kB / 0.4989 GB, free: 24 kB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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