Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 111.7 kB / 18.46 MB, free: 4.594 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.001296/0.001296, allocations: 182.1 kB / 19.38 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1961/0.1961, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2905, allocations: 60.83 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002168/0.2927, allocations: 1.532 MB / 0.5211 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006885/0.2934, allocations: 497.5 kB / 0.5215 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.412e-05/0.2935, allocations: 1.094 kB / 0.5215 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.163e-05/0.2935, allocations: 5.297 kB / 0.5215 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-05/0.2936, allocations: 10.64 kB / 0.5215 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.2938, allocations: 40.17 kB / 0.5216 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.2939, allocations: 90.34 kB / 0.5217 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.153e-05/0.294, allocations: 15.94 kB / 0.5217 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.2941, allocations: 44.81 kB / 0.5217 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.724e-05/0.2942, allocations: 36.98 kB / 0.5218 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.2943, allocations: 11.58 kB / 0.5218 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.738e-05/0.2943, allocations: 6.844 kB / 0.5218 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.846e-05/0.2943, allocations: 20.03 kB / 0.5218 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.866e-05/0.2944, allocations: 38.05 kB / 0.5218 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.2945, allocations: 76.53 kB / 0.5219 GB, free: 2.004 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2945, allocations: 0 / 0.5219 GB, free: 2.004 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2945, allocations: 5 kB / 0.5219 GB, free: 2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.2945, allocations: 0 / 0.5219 GB, free: 2 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.0005521/0.2951, allocations: 393.9 kB / 0.5223 GB, free: 1.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2951, allocations: 9.25 kB / 0.5223 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.2952, allocations: 14.61 kB / 0.5223 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.58e-05/0.2952, allocations: 174 kB / 0.5225 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.2953, allocations: 12.08 kB / 0.5225 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.2953, allocations: 7.891 kB / 0.5225 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.2955, allocations: 94.23 kB / 0.5226 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.2955, allocations: 1.188 kB / 0.5226 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.2955, allocations: 0.6094 kB / 0.5226 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.2955, allocations: 2.562 kB / 0.5226 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.2956, allocations: 42.45 kB / 0.5226 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.2961, allocations: 334.5 kB / 0.523 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.2963, allocations: 91.97 kB / 0.523 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.639e-05/0.2964, allocations: 42.27 kB / 0.5231 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.2964, allocations: 2.156 kB / 0.5231 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001729/0.2966, allocations: 98.72 kB / 0.5232 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.224e-06/0.2966, allocations: 3.984 kB / 0.5232 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004109/0.297, allocations: 187.3 kB / 0.5234 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.297, allocations: 60.69 kB / 0.5234 GB, free: 0.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.361e-05/0.2971, allocations: 119 kB / 0.5235 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.2971, allocations: 32.95 kB / 0.5236 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.517e-05/0.2972, allocations: 89.22 kB / 0.5236 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.124e-05/0.2972, allocations: 40.31 kB / 0.5237 GB, free: 496 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/0.2973, allocations: 38.72 kB / 0.5237 GB, free: 468 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.999e-05/0.2973, allocations: 328.1 kB / 0.524 GB, free: 136 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.45e-05/0.2974, allocations: 33.12 kB / 0.5241 GB, free: 128 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.313e-05/0.2975, allocations: 77.5 kB / 0.5241 GB, free: 64 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.2977, allocations: 130.8 kB / 0.5243 GB, free: 15.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2977, allocations: 1.031 kB / 0.5243 GB, free: 15.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002686/0.298, allocations: 157.6 kB / 0.5244 GB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.298, allocations: 7.297 kB / 0.5244 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.298, allocations: 0 / 0.5244 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.298, allocations: 3.531 kB / 0.5244 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.2981, allocations: 22.42 kB / 0.5244 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.2982, allocations: 7.219 kB / 0.5245 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.499e-05/0.2982, allocations: 13.2 kB / 0.5245 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.2983, allocations: 9.438 kB / 0.5245 GB, free: 15.87 MB / 398.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.0001017/0.2984, allocations: 133.7 kB / 0.5246 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.2984, allocations: 8.297 kB / 0.5246 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/0.2984, allocations: 11.92 kB / 0.5246 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2984, allocations: 0.7969 kB / 0.5246 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2984, allocations: 7.875 kB / 0.5246 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.2985, allocations: 89.22 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.2985, allocations: 6.406 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.332e-05/0.2986, allocations: 7.891 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.2987, allocations: 8.469 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003244/0.299, allocations: 234 kB / 0.525 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003294/0.2993, allocations: 326.5 kB / 0.5253 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.851e-05/0.2994, allocations: 43.66 kB / 0.5253 GB, free: 15.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.592e-05/0.2995, allocations: 90.8 kB / 0.5254 GB, free: 15.12 MB / 398.1 MB Notification: Performance of Backend: time 2.91e-07/0.2995, allocations: 0 / 0.5254 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004072/0.2999, allocations: 147.8 kB / 0.5255 GB, free: 15.04 MB / 398.1 MB Notification: Performance of SimCode: time 0.0005261/0.3004, allocations: 0.6156 MB / 0.5261 GB, free: 14.43 MB / 398.1 MB Notification: Performance of Templates: time 0.003385/0.3038, allocations: 1.093 MB / 0.5272 GB, free: 14.28 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches