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.001067/0.001067, allocations: 103.1 kB / 16.4 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.001006/0.001006, allocations: 192.2 kB / 17.34 MB, free: 5.73 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.324/1.324, 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.1959/0.1959, allocations: 43.51 MB / 314.1 MB, free: 456 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.001551/0.001551, allocations: 65.45 kB / 441.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.117, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003191/0.1202, allocations: 1.534 MB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1214, allocations: 0.5307 MB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.932e-05/0.1215, allocations: 0 / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.259e-05/0.1215, allocations: 3.938 kB / 0.4899 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.1217, allocations: 11.88 kB / 0.4899 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003012/0.122, allocations: 39.88 kB / 0.4899 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.1222, allocations: 91.7 kB / 0.49 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.1223, allocations: 19.97 kB / 0.49 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.1225, allocations: 35.84 kB / 0.4901 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.1227, allocations: 39.84 kB / 0.4901 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.1227, allocations: 8 kB / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.018e-05/0.1227, allocations: 8 kB / 0.4901 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.694e-05/0.1228, allocations: 23.91 kB / 0.4902 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.871e-05/0.1228, allocations: 35.8 kB / 0.4902 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.123, allocations: 79.7 kB / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.123, allocations: 0 / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.123, allocations: 0 / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.123, allocations: 0 / 0.4903 GB, free: 9.34 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.0007558/0.1238, allocations: 407.1 kB / 0.4906 GB, free: 8.895 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.1238, allocations: 11.89 kB / 0.4907 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.1239, allocations: 8.844 kB / 0.4907 GB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.1241, allocations: 172.2 kB / 0.4908 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.1241, allocations: 8.375 kB / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.1241, allocations: 12.36 kB / 0.4909 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.1243, allocations: 81.97 kB / 0.4909 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1244, allocations: 7.984 kB / 0.4909 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.1244, allocations: 0 / 0.4909 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1244, allocations: 7.984 kB / 0.4909 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.1245, allocations: 47.91 kB / 0.491 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005953/0.1251, allocations: 316.8 kB / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.1253, allocations: 98.41 kB / 0.4914 GB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.727e-05/0.1254, allocations: 48.84 kB / 0.4914 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.1255, allocations: 0 / 0.4914 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.1257, allocations: 103.4 kB / 0.4915 GB, free: 7.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.394e-06/0.1257, allocations: 0 / 0.4915 GB, free: 7.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004274/0.1262, allocations: 181.5 kB / 0.4917 GB, free: 7.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.1262, allocations: 59.41 kB / 0.4918 GB, free: 7.617 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.853e-05/0.1263, allocations: 121.8 kB / 0.4919 GB, free: 7.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.1264, allocations: 29.7 kB / 0.4919 GB, free: 7.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.91e-05/0.1264, allocations: 100.3 kB / 0.492 GB, free: 7.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.81e-05/0.1265, allocations: 35.59 kB / 0.492 GB, free: 7.316 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.1266, allocations: 33.72 kB / 0.4921 GB, free: 7.277 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1267, allocations: 326.8 kB / 0.4924 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.1268, allocations: 35.97 kB / 0.4924 GB, free: 6.914 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.1269, allocations: 77.12 kB / 0.4925 GB, free: 6.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.1271, allocations: 125 kB / 0.4926 GB, free: 6.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1271, allocations: 0 / 0.4926 GB, free: 6.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002928/0.1274, allocations: 161.6 kB / 0.4928 GB, free: 6.516 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1275, allocations: 4 kB / 0.4928 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1275, allocations: 0 / 0.4928 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1275, allocations: 4 kB / 0.4928 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.1276, allocations: 32.02 kB / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.1277, allocations: 3.984 kB / 0.4928 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.979e-05/0.1277, allocations: 15.84 kB / 0.4928 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.1278, allocations: 15.98 kB / 0.4928 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 0.0001295/0.1279, allocations: 132 kB / 0.493 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.1279, allocations: 7.906 kB / 0.493 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.648e-05/0.128, allocations: 8.5 kB / 0.493 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.128, allocations: 7.938 kB / 0.493 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.128, allocations: 0 / 0.493 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.128, allocations: 7.984 kB / 0.493 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006137/0.1286, allocations: 446.4 kB / 0.4934 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1286, allocations: 4.312 kB / 0.4934 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.299e-05/0.1287, allocations: 4 kB / 0.4934 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1287, allocations: 0 / 0.4934 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.1287, allocations: 7.984 kB / 0.4934 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1287, allocations: 3.938 kB / 0.4934 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1287, allocations: 0 / 0.4934 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.1291, allocations: 260 kB / 0.4937 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.1291, allocations: 92.94 kB / 0.4938 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.1292, allocations: 4 kB / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.1293, allocations: 15.92 kB / 0.4938 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.1293, allocations: 7.984 kB / 0.4938 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.1293, allocations: 8 kB / 0.4938 GB, free: 5.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.047e-05/0.1294, allocations: 95.27 kB / 0.4939 GB, free: 5.246 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1294, allocations: 0 / 0.4939 GB, free: 5.246 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.1297, allocations: 20 kB / 0.4939 GB, free: 5.227 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.0001267/0.1298, allocations: 95.25 kB / 0.494 GB, free: 5.125 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002785/0.1301, allocations: 107.8 kB / 0.4941 GB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1301, allocations: 0 / 0.4941 GB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.1303, allocations: 51.97 kB / 0.4942 GB, free: 4.969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.1305, allocations: 16.25 kB / 0.4942 GB, free: 4.953 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004853/0.131, allocations: 211.2 kB / 0.4944 GB, free: 4.715 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.1313, allocations: 0.6924 MB / 0.4951 GB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.577e-05/0.1314, allocations: 12.88 kB / 0.4951 GB, free: 3.984 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.1314, allocations: 11.44 kB / 0.4951 GB, free: 3.973 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1314, allocations: 4 kB / 0.4951 GB, free: 3.969 MB / 382.1 MB Notification: Performance of Templates: time 0.003542/0.135, allocations: 1.006 MB / 0.4961 GB, free: 2.969 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches