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.00183/0.00183, allocations: 118.5 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.002595/0.002595, allocations: 197.2 kB / 18.01 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 2.949/2.949, allocations: 205.1 MB / 223.9 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.2769/0.2769, allocations: 43.51 MB / 314.8 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.001644/0.001645, allocations: 73.45 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1271, allocations: 57.78 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003397/0.1305, allocations: 1.528 MB / 0.49 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.132, allocations: 0.5269 MB / 0.4905 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1322, allocations: 3.938 kB / 0.4905 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.471e-05/0.1322, allocations: 7.922 kB / 0.4905 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.1324, allocations: 11.88 kB / 0.4906 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003307/0.1327, allocations: 35.89 kB / 0.4906 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.1329, allocations: 87.7 kB / 0.4907 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.1331, allocations: 15.97 kB / 0.4907 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1332, allocations: 39.91 kB / 0.4907 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.1334, allocations: 47.77 kB / 0.4908 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.1334, allocations: 8 kB / 0.4908 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.267e-05/0.1335, allocations: 8 kB / 0.4908 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.002e-05/0.1335, allocations: 19.91 kB / 0.4908 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.017e-05/0.1336, allocations: 39.8 kB / 0.4908 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.1338, allocations: 75.72 kB / 0.4909 GB, free: 9.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1338, allocations: 3.984 kB / 0.4909 GB, free: 9.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1338, allocations: 0 / 0.4909 GB, free: 9.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.988e-06/0.1338, allocations: 0 / 0.4909 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.00084/0.1347, allocations: 398.6 kB / 0.4913 GB, free: 8.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/0.1347, allocations: 15.89 kB / 0.4913 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.865e-05/0.1348, allocations: 12.83 kB / 0.4913 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.135, allocations: 180.2 kB / 0.4915 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.135, allocations: 4.375 kB / 0.4915 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.135, allocations: 8.375 kB / 0.4915 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.1353, allocations: 89.95 kB / 0.4916 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1353, allocations: 4 kB / 0.4916 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.1353, allocations: 0 / 0.4916 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1353, allocations: 7.938 kB / 0.4916 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.1355, allocations: 43.97 kB / 0.4916 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005732/0.1361, allocations: 324.7 kB / 0.492 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001995/0.1363, allocations: 90.48 kB / 0.492 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.976e-05/0.1364, allocations: 40.84 kB / 0.4921 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.1364, allocations: 8 kB / 0.4921 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002204/0.1366, allocations: 99.48 kB / 0.4922 GB, free: 7.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.1367, allocations: 0 / 0.4922 GB, free: 7.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004418/0.1371, allocations: 185.5 kB / 0.4924 GB, free: 7.691 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.1372, allocations: 67.39 kB / 0.4924 GB, free: 7.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.353e-05/0.1373, allocations: 113.8 kB / 0.4925 GB, free: 7.492 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.1373, allocations: 33.7 kB / 0.4926 GB, free: 7.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.964e-05/0.1374, allocations: 96.36 kB / 0.4927 GB, free: 7.355 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.1374, allocations: 31.59 kB / 0.4927 GB, free: 7.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.883e-05/0.1375, allocations: 37.7 kB / 0.4927 GB, free: 7.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1376, allocations: 326.8 kB / 0.493 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1377, allocations: 35.98 kB / 0.4931 GB, free: 6.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.1378, allocations: 81.06 kB / 0.4931 GB, free: 6.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.138, allocations: 125.1 kB / 0.4933 GB, free: 6.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1381, allocations: 0 / 0.4933 GB, free: 6.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002712/0.1383, allocations: 153.6 kB / 0.4934 GB, free: 6.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1384, allocations: 8 kB / 0.4934 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1384, allocations: 4 kB / 0.4934 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1384, allocations: 4.156 kB / 0.4934 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.1385, allocations: 35.86 kB / 0.4935 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.1385, allocations: 0 / 0.4935 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.934e-05/0.1386, allocations: 11.84 kB / 0.4935 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.1387, allocations: 12 kB / 0.4935 GB, free: 6.449 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.0001332/0.1388, allocations: 128 kB / 0.4936 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/0.1388, allocations: 15.83 kB / 0.4936 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.1389, allocations: 8.5 kB / 0.4936 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.1389, allocations: 7.938 kB / 0.4936 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1389, allocations: 8.359 kB / 0.4936 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1389, allocations: 0 / 0.4936 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005395/0.1394, allocations: 434.4 kB / 0.4941 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.1395, allocations: 3.938 kB / 0.4941 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.979e-05/0.1395, allocations: 19.86 kB / 0.4941 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.1395, allocations: 0 / 0.4941 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.1396, allocations: 8 kB / 0.4941 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1396, allocations: 0 / 0.4941 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1396, allocations: 0 / 0.4941 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003046/0.1399, allocations: 251.4 kB / 0.4943 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.1399, allocations: 88.95 kB / 0.4944 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.14, allocations: 7.922 kB / 0.4944 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.1401, allocations: 8 kB / 0.4944 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.1401, allocations: 7.984 kB / 0.4944 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.1402, allocations: 7.984 kB / 0.4944 GB, free: 5.359 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.203e-05/0.1402, allocations: 95.28 kB / 0.4945 GB, free: 5.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.1402, allocations: 0 / 0.4945 GB, free: 5.266 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002552/0.1405, allocations: 23.94 kB / 0.4946 GB, free: 5.242 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.0001165/0.1406, allocations: 103.3 kB / 0.4947 GB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002548/0.1409, allocations: 103.8 kB / 0.4948 GB, free: 5.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1409, allocations: 0 / 0.4948 GB, free: 5.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.141, allocations: 48.23 kB / 0.4948 GB, free: 4.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.1413, allocations: 23.92 kB / 0.4948 GB, free: 4.961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004693/0.1418, allocations: 234 kB / 0.495 GB, free: 4.695 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.1421, allocations: 0.6924 MB / 0.4957 GB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.1421, allocations: 19.42 kB / 0.4957 GB, free: 3.957 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1421, allocations: 0 / 0.4957 GB, free: 3.957 MB / 382.1 MB Notification: Performance of Templates: time 0.003069/0.1452, allocations: 1.236 MB / 0.497 GB, free: 2.727 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