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.001238/0.001238, allocations: 108.3 kB / 16.41 MB, free: 6.473 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.001208/0.001208, allocations: 188.1 kB / 17.34 MB, free: 5.754 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.489/1.489, 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.2146/0.2146, allocations: 43.53 MB / 314.1 MB, free: 468 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.001401/0.001401, allocations: 63.91 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1203, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002413/0.1227, allocations: 1.523 MB / 0.4894 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008006/0.1235, allocations: 0.5268 MB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.172e-05/0.1236, allocations: 4 kB / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.654e-05/0.1236, allocations: 3.938 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.71e-05/0.1237, allocations: 19.86 kB / 0.4899 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.1239, allocations: 39.83 kB / 0.4899 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.124, allocations: 83.77 kB / 0.49 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.1242, allocations: 15.97 kB / 0.49 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.1243, allocations: 43.83 kB / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.28e-05/0.1244, allocations: 43.84 kB / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.1244, allocations: 8 kB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.501e-05/0.1244, allocations: 8 kB / 0.4901 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.743e-05/0.1245, allocations: 23.91 kB / 0.4902 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.253e-05/0.1245, allocations: 35.8 kB / 0.4902 GB, free: 9.422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.1246, allocations: 83.64 kB / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1246, allocations: 0 / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1247, allocations: 0 / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1247, 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.0006011/0.1253, allocations: 403.2 kB / 0.4906 GB, free: 8.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1253, allocations: 11.89 kB / 0.4907 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.1254, allocations: 8.844 kB / 0.4907 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.1255, allocations: 176.2 kB / 0.4908 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.1255, allocations: 4.375 kB / 0.4908 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.1255, allocations: 8.375 kB / 0.4908 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.1257, allocations: 97.89 kB / 0.4909 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1257, allocations: 4 kB / 0.4909 GB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.1258, allocations: 0 / 0.4909 GB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.1258, allocations: 7.938 kB / 0.491 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.1259, allocations: 43.97 kB / 0.491 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.1264, allocations: 316.8 kB / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.1266, allocations: 94.42 kB / 0.4914 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.417e-05/0.1267, allocations: 44.84 kB / 0.4914 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.1267, allocations: 4 kB / 0.4914 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001913/0.1269, allocations: 99.48 kB / 0.4915 GB, free: 7.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.1269, allocations: 0 / 0.4915 GB, free: 7.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003946/0.1273, allocations: 181.5 kB / 0.4917 GB, free: 7.695 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.1274, allocations: 63.34 kB / 0.4918 GB, free: 7.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.027e-05/0.1275, allocations: 125.7 kB / 0.4919 GB, free: 7.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.1275, allocations: 29.7 kB / 0.4919 GB, free: 7.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.1275, allocations: 96.36 kB / 0.492 GB, free: 7.355 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.1276, allocations: 31.59 kB / 0.492 GB, free: 7.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.1277, allocations: 37.7 kB / 0.4921 GB, free: 7.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1278, allocations: 326.8 kB / 0.4924 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.294e-05/0.1278, allocations: 35.98 kB / 0.4924 GB, free: 6.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.128, allocations: 77.12 kB / 0.4925 GB, free: 6.824 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.1282, allocations: 125 kB / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1282, allocations: 0 / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002588/0.1284, allocations: 153.6 kB / 0.4928 GB, free: 6.527 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1285, allocations: 8 kB / 0.4928 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.1285, allocations: 0 / 0.4928 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1285, allocations: 7.938 kB / 0.4928 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.1286, allocations: 32.08 kB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1286, allocations: 0 / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.1287, allocations: 15.83 kB / 0.4928 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.1287, allocations: 12 kB / 0.4928 GB, free: 6.453 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.0001017/0.1288, allocations: 132 kB / 0.493 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/0.1288, allocations: 11.91 kB / 0.493 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.1289, allocations: 12.48 kB / 0.493 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1289, allocations: 7.938 kB / 0.493 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1289, allocations: 4.375 kB / 0.493 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1289, allocations: 4 kB / 0.493 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004861/0.1294, allocations: 438.4 kB / 0.4934 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.1294, allocations: 3.938 kB / 0.4934 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.962e-05/0.1295, allocations: 11.94 kB / 0.4934 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1295, allocations: 0 / 0.4934 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1295, allocations: 7.984 kB / 0.4934 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1295, allocations: 0 / 0.4934 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1295, allocations: 3.984 kB / 0.4934 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002991/0.1298, allocations: 259.3 kB / 0.4937 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.1299, allocations: 88.95 kB / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.1299, allocations: 0 / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.13, allocations: 11.92 kB / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.13, allocations: 15.98 kB / 0.4938 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1301, allocations: 4 kB / 0.4938 GB, free: 5.352 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.329e-05/0.1301, allocations: 91.27 kB / 0.4939 GB, free: 5.262 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1301, allocations: 4 kB / 0.4939 GB, free: 5.258 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.1304, allocations: 20 kB / 0.4939 GB, free: 5.238 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 9.312e-05/0.1305, allocations: 103.2 kB / 0.494 GB, free: 5.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.1307, allocations: 104.6 kB / 0.4941 GB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1308, allocations: 0 / 0.4941 GB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1309, allocations: 47.92 kB / 0.4942 GB, free: 4.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.1311, allocations: 26.89 kB / 0.4942 GB, free: 4.957 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004135/0.1316, allocations: 207.6 kB / 0.4944 GB, free: 4.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.1318, allocations: 0.6924 MB / 0.4951 GB, free: 4.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.234e-05/0.1319, allocations: 12.88 kB / 0.4951 GB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.415e-05/0.1319, allocations: 11.44 kB / 0.4951 GB, free: 3.98 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1319, allocations: 4 kB / 0.4951 GB, free: 3.977 MB / 382.1 MB Notification: Performance of Templates: time 0.003084/0.135, allocations: 1.011 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