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: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 109.1 kB / 17.09 MB, free: 5.984 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.001293/0.001293, allocations: 200.2 kB / 18.02 MB, free: 5.066 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.234/1.234, allocations: 205.1 MB / 223.9 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.1848/0.1848, allocations: 43.53 MB / 314.8 MB, free: 444 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.001325/0.001325, allocations: 65.47 kB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.09972, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002388/0.1022, allocations: 1.525 MB / 0.49 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008243/0.103, allocations: 0.5322 MB / 0.4905 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.265e-05/0.103, allocations: 0 / 0.4905 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.059e-05/0.1031, allocations: 3.938 kB / 0.4905 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.529e-05/0.1032, allocations: 15.86 kB / 0.4906 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002022/0.1034, allocations: 39.83 kB / 0.4906 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.1035, allocations: 87.77 kB / 0.4907 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.1036, allocations: 11.97 kB / 0.4907 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.1038, allocations: 51.83 kB / 0.4907 GB, free: 9.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.1038, allocations: 35.84 kB / 0.4908 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.1039, allocations: 8 kB / 0.4908 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.1039, allocations: 8 kB / 0.4908 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.1039, allocations: 19.91 kB / 0.4908 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.758e-05/0.104, allocations: 43.78 kB / 0.4909 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.1041, allocations: 79.66 kB / 0.4909 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1041, allocations: 0 / 0.4909 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1041, allocations: 0 / 0.4909 GB, free: 9.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1041, allocations: 0 / 0.4909 GB, free: 9.324 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.000585/0.1047, allocations: 399.2 kB / 0.4913 GB, free: 8.887 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.1048, allocations: 15.89 kB / 0.4913 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.1048, allocations: 8.844 kB / 0.4913 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.1049, allocations: 176.2 kB / 0.4915 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.105, allocations: 12.31 kB / 0.4915 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.105, allocations: 4.375 kB / 0.4915 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.1052, allocations: 97.89 kB / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1052, allocations: 0 / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.1052, allocations: 0 / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.1052, allocations: 0 / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.1053, allocations: 47.97 kB / 0.4917 GB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.1059, allocations: 324.8 kB / 0.492 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.106, allocations: 98.42 kB / 0.4921 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.312e-05/0.1061, allocations: 40.84 kB / 0.4921 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.1062, allocations: 4 kB / 0.4921 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.1064, allocations: 95.48 kB / 0.4922 GB, free: 7.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.1064, allocations: 0 / 0.4922 GB, free: 7.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003879/0.1068, allocations: 185.5 kB / 0.4924 GB, free: 7.676 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1068, allocations: 63.34 kB / 0.4924 GB, free: 7.602 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.126e-05/0.1069, allocations: 121.7 kB / 0.4925 GB, free: 7.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.1069, allocations: 33.7 kB / 0.4926 GB, free: 7.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.851e-05/0.107, allocations: 92.36 kB / 0.4927 GB, free: 7.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.107, allocations: 35.59 kB / 0.4927 GB, free: 7.305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.1071, allocations: 33.7 kB / 0.4927 GB, free: 7.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1072, allocations: 330.8 kB / 0.493 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/0.1073, allocations: 35.98 kB / 0.4931 GB, free: 6.898 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.846e-05/0.1074, allocations: 73.12 kB / 0.4932 GB, free: 6.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.1076, allocations: 125 kB / 0.4933 GB, free: 6.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1076, allocations: 0 / 0.4933 GB, free: 6.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002486/0.1078, allocations: 157.6 kB / 0.4934 GB, free: 6.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1079, allocations: 8 kB / 0.4934 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1079, allocations: 0 / 0.4934 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.1079, allocations: 12.09 kB / 0.4934 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.108, allocations: 15.98 kB / 0.4935 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.108, allocations: 7.938 kB / 0.4935 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.409e-05/0.1081, allocations: 19.83 kB / 0.4935 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.1081, allocations: 4.375 kB / 0.4935 GB, free: 6.441 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 9.889e-05/0.1082, allocations: 140 kB / 0.4936 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.688e-05/0.1082, allocations: 7.906 kB / 0.4936 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.901e-05/0.1083, allocations: 12.48 kB / 0.4936 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1083, allocations: 7.938 kB / 0.4936 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.1083, allocations: 7.938 kB / 0.4937 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.665e-05/0.1083, allocations: 88.95 kB / 0.4937 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.1084, allocations: 4 kB / 0.4937 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.079e-05/0.1084, allocations: 11.98 kB / 0.4938 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.1085, allocations: 7.984 kB / 0.4938 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002926/0.1088, allocations: 228.9 kB / 0.494 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003095/0.1091, allocations: 326.7 kB / 0.4943 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.738e-05/0.1092, allocations: 44.72 kB / 0.4943 GB, free: 5.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.991e-05/0.1093, allocations: 91.27 kB / 0.4944 GB, free: 5.426 MB / 382.1 MB Notification: Performance of Backend: time 3.41e-07/0.1093, allocations: 0 / 0.4944 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004022/0.1097, allocations: 146.2 kB / 0.4946 GB, free: 5.277 MB / 382.1 MB Notification: Performance of SimCode: time 0.0005197/0.1102, allocations: 0.6293 MB / 0.4952 GB, free: 4.602 MB / 382.1 MB Notification: Performance of Templates: time 0.00317/0.1134, allocations: 1.135 MB / 0.4963 GB, free: 3.473 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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