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.001099/0.001099, allocations: 107.7 kB / 16.41 MB, free: 6.492 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.001804/0.001804, allocations: 189.5 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.32/1.32, 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.2028/0.2028, allocations: 43.52 MB / 314.1 MB, free: 464 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.001478/0.001478, allocations: 69.47 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1046, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002723/0.1073, allocations: 1.527 MB / 0.4889 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009377/0.1083, allocations: 0.523 MB / 0.4894 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.77e-05/0.1084, allocations: 3.938 kB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.172e-05/0.1084, allocations: 3.938 kB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.076e-05/0.1086, allocations: 19.84 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.1088, allocations: 35.89 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.1089, allocations: 87.7 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.109, allocations: 19.92 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1092, allocations: 47.83 kB / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.012e-05/0.1093, allocations: 35.84 kB / 0.4896 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.1093, allocations: 8 kB / 0.4896 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.657e-05/0.1093, allocations: 8 kB / 0.4896 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.1094, allocations: 19.91 kB / 0.4897 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.1094, allocations: 43.78 kB / 0.4897 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.1096, allocations: 71.78 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1096, allocations: 0 / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1096, allocations: 4 kB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.229e-06/0.1096, allocations: 0 / 0.4898 GB, free: 9.836 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.0006105/0.1102, allocations: 398.6 kB / 0.4902 GB, free: 9.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.1102, allocations: 15.89 kB / 0.4902 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.721e-05/0.1103, allocations: 42.73 kB / 0.4902 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.1103, allocations: 12.84 kB / 0.4902 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.1105, allocations: 180.2 kB / 0.4904 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.1105, allocations: 4.375 kB / 0.4904 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.1105, allocations: 12.36 kB / 0.4904 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.1107, allocations: 77.78 kB / 0.4905 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1107, allocations: 0 / 0.4905 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.1108, allocations: 11.98 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1108, allocations: 0 / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.1109, allocations: 43.92 kB / 0.4905 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.1115, allocations: 332.6 kB / 0.4909 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.1117, allocations: 90.48 kB / 0.4909 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.9e-05/0.1118, allocations: 44.83 kB / 0.491 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.1119, allocations: 0 / 0.491 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.1121, allocations: 111.4 kB / 0.4911 GB, free: 8.316 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.1121, allocations: 0 / 0.4911 GB, free: 8.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004302/0.1126, allocations: 189.5 kB / 0.4913 GB, free: 8.125 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.1126, allocations: 55.41 kB / 0.4913 GB, free: 8.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.556e-05/0.1127, allocations: 117.8 kB / 0.4914 GB, free: 7.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.1128, allocations: 33.7 kB / 0.4915 GB, free: 7.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.215e-05/0.1128, allocations: 88.41 kB / 0.4916 GB, free: 7.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.1129, allocations: 39.55 kB / 0.4916 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.3e-05/0.1129, allocations: 37.72 kB / 0.4916 GB, free: 7.723 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1131, allocations: 330.7 kB / 0.4919 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.414e-05/0.1132, allocations: 31.97 kB / 0.492 GB, free: 7.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.1133, allocations: 77.14 kB / 0.492 GB, free: 7.266 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.1135, allocations: 125 kB / 0.4922 GB, free: 7.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1135, allocations: 0 / 0.4922 GB, free: 7.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002694/0.1137, allocations: 161.7 kB / 0.4923 GB, free: 6.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1138, allocations: 4 kB / 0.4923 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1138, allocations: 4 kB / 0.4923 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1138, allocations: 3.938 kB / 0.4923 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.1139, allocations: 27.92 kB / 0.4924 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.114, allocations: 4 kB / 0.4924 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.374e-05/0.114, allocations: 7.906 kB / 0.4924 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.114, allocations: 8 kB / 0.4924 GB, free: 6.902 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.0001102/0.1142, allocations: 136 kB / 0.4925 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.1142, allocations: 7.906 kB / 0.4925 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.514e-05/0.1142, allocations: 16.5 kB / 0.4925 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1142, allocations: 3.938 kB / 0.4925 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1143, allocations: 0 / 0.4925 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.1143, allocations: 0 / 0.4925 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000544/0.1148, allocations: 442.7 kB / 0.493 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1148, allocations: 3.984 kB / 0.493 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.461e-05/0.1149, allocations: 8 kB / 0.493 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1149, allocations: 8 kB / 0.493 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.1149, allocations: 3.938 kB / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1149, allocations: 3.984 kB / 0.493 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1149, allocations: 4 kB / 0.493 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.1152, allocations: 247.4 kB / 0.4932 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.11e-05/0.1153, allocations: 92.88 kB / 0.4933 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.5e-05/0.1153, allocations: 4 kB / 0.4933 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.1154, allocations: 11.98 kB / 0.4933 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.064e-05/0.1155, allocations: 8 kB / 0.4933 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.1155, allocations: 7.984 kB / 0.4933 GB, free: 5.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.24e-05/0.1156, allocations: 91.27 kB / 0.4934 GB, free: 5.719 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1156, allocations: 0 / 0.4934 GB, free: 5.719 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002499/0.1158, allocations: 24 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.0005622/0.1164, allocations: 0.7872 MB / 0.4942 GB, free: 4.883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002406/0.1167, allocations: 107.9 kB / 0.4943 GB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1167, allocations: 0 / 0.4943 GB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.1168, allocations: 60.02 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.0002798/0.1171, allocations: 12.64 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.001685/0.1188, allocations: 1.653 MB / 0.496 GB, free: 2.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.119, allocations: 0.6924 MB / 0.4967 GB, free: 2.219 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.795e-05/0.1191, allocations: 16.86 kB / 0.4967 GB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.923e-05/0.1191, allocations: 23.42 kB / 0.4967 GB, free: 2.18 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1192, allocations: 0 / 0.4967 GB, free: 2.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.1384, allocations: 2.202 MB / 0.4989 GB, free: 15.97 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.593/7.731, allocations: 23.78 kB / 0.4989 GB, free: 15.95 MB / 398.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