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.001881/0.001882, allocations: 115.2 kB / 17.09 MB, free: 5.988 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.002122/0.002122, allocations: 198.9 kB / 18.02 MB, free: 5.062 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.684/1.684, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2154/0.2154, allocations: 43.52 MB / 314.8 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.001519/0.001519, allocations: 69.44 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1089, allocations: 57.79 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002645/0.1116, allocations: 1.517 MB / 0.49 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000946/0.1126, allocations: 0.5283 MB / 0.4905 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.296e-05/0.1127, allocations: 3.938 kB / 0.4905 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.482e-05/0.1127, allocations: 11.92 kB / 0.4905 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.664e-05/0.1128, allocations: 11.88 kB / 0.4906 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.1131, allocations: 39.89 kB / 0.4906 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.1132, allocations: 83.7 kB / 0.4907 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.1133, allocations: 19.97 kB / 0.4907 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.1135, allocations: 35.91 kB / 0.4907 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.1136, allocations: 47.77 kB / 0.4908 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.1136, allocations: 8 kB / 0.4908 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.003e-05/0.1137, allocations: 8 kB / 0.4908 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.831e-05/0.1137, allocations: 23.91 kB / 0.4908 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.037e-05/0.1138, allocations: 35.8 kB / 0.4908 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.1139, allocations: 75.72 kB / 0.4909 GB, free: 9.332 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.114, allocations: 0 / 0.4909 GB, free: 9.332 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.114, allocations: 0 / 0.4909 GB, free: 9.332 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.114, allocations: 0 / 0.4909 GB, free: 9.332 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.0007712/0.1148, allocations: 403.2 kB / 0.4913 GB, free: 8.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.1148, allocations: 11.89 kB / 0.4913 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/0.1149, allocations: 8.844 kB / 0.4913 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.115, allocations: 184.1 kB / 0.4915 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.1151, allocations: 8.359 kB / 0.4915 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.1151, allocations: 12.38 kB / 0.4915 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.1153, allocations: 85.95 kB / 0.4916 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1153, allocations: 4 kB / 0.4916 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.1154, allocations: 0 / 0.4916 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1154, allocations: 4 kB / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.1155, allocations: 43.97 kB / 0.4917 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006273/0.1162, allocations: 320.7 kB / 0.492 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.1164, allocations: 94.48 kB / 0.492 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.94e-05/0.1165, allocations: 44.84 kB / 0.4921 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.1165, allocations: 0 / 0.4921 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.1168, allocations: 103.5 kB / 0.4922 GB, free: 7.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.054e-06/0.1168, allocations: 0 / 0.4922 GB, free: 7.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004447/0.1172, allocations: 189.5 kB / 0.4924 GB, free: 7.676 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.1173, allocations: 55.41 kB / 0.4924 GB, free: 7.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.1174, allocations: 125.7 kB / 0.4925 GB, free: 7.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.1174, allocations: 29.7 kB / 0.4926 GB, free: 7.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.3e-05/0.1175, allocations: 92.36 kB / 0.4927 GB, free: 7.348 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.495e-05/0.1175, allocations: 35.59 kB / 0.4927 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.656e-05/0.1176, allocations: 41.7 kB / 0.4927 GB, free: 7.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1177, allocations: 322.8 kB / 0.493 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.734e-05/0.1178, allocations: 31.98 kB / 0.4931 GB, free: 6.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.1179, allocations: 81.12 kB / 0.4931 GB, free: 6.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.1181, allocations: 125 kB / 0.4933 GB, free: 6.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1181, allocations: 4 kB / 0.4933 GB, free: 6.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002683/0.1184, allocations: 161.5 kB / 0.4934 GB, free: 6.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1184, allocations: 4 kB / 0.4934 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1184, allocations: 0 / 0.4934 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1184, allocations: 4 kB / 0.4934 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.1186, allocations: 32.08 kB / 0.4935 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.1186, allocations: 3.938 kB / 0.4935 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.447e-05/0.1187, allocations: 16.22 kB / 0.4935 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.1187, allocations: 8 kB / 0.4935 GB, free: 6.438 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.0001037/0.1188, allocations: 124 kB / 0.4936 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.071e-05/0.1188, allocations: 11.89 kB / 0.4936 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.1189, allocations: 16.44 kB / 0.4936 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.1189, allocations: 7.938 kB / 0.4936 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1189, allocations: 3.938 kB / 0.4936 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.1189, allocations: 88.95 kB / 0.4937 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.119, allocations: 7.984 kB / 0.4937 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.335e-05/0.119, allocations: 11.98 kB / 0.4938 GB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.574e-05/0.1191, allocations: 11.98 kB / 0.4938 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003049/0.1194, allocations: 220.9 kB / 0.494 GB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003371/0.1198, allocations: 334.6 kB / 0.4943 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001128/0.1199, allocations: 43.98 kB / 0.4943 GB, free: 5.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.915e-05/0.12, allocations: 91.27 kB / 0.4944 GB, free: 5.426 MB / 382.1 MB Notification: Performance of Backend: time 3.81e-07/0.12, allocations: 0 / 0.4944 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004672/0.1204, allocations: 142.3 kB / 0.4946 GB, free: 5.281 MB / 382.1 MB Notification: Performance of SimCode: time 0.000721/0.1212, allocations: 0.6293 MB / 0.4952 GB, free: 4.605 MB / 382.1 MB Notification: Performance of Templates: time 0.003746/0.1249, allocations: 1.108 MB / 0.4963 GB, free: 3.508 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