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.001127/0.001127, allocations: 103.8 kB / 16.94 MB, free: 6.184 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.001132/0.001132, allocations: 191.4 kB / 17.86 MB, free: 5.289 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.516/1.516, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.2355/0.2355, allocations: 43.52 MB / 314.6 MB, free: 0.543 MB / 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.001531/0.001531, allocations: 64.14 kB / 383.4 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1265, allocations: 57.8 MB / 441.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002436/0.129, allocations: 1.524 MB / 442.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006925/0.1297, allocations: 0.5191 MB / 443.2 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.584e-05/0.1298, allocations: 4 kB / 443.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.807e-05/0.1298, allocations: 3.938 kB / 443.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.133e-05/0.1299, allocations: 15.86 kB / 443.3 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.1301, allocations: 39.89 kB / 443.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.862e-05/0.1302, allocations: 87.7 kB / 443.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.1303, allocations: 11.98 kB / 443.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.1305, allocations: 39.84 kB / 443.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.264e-05/0.1305, allocations: 43.83 kB / 443.5 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.1306, allocations: 8 kB / 443.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.61e-05/0.1306, allocations: 4 kB / 443.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.589e-05/0.1306, allocations: 19.92 kB / 443.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.692e-05/0.1307, allocations: 39.86 kB / 443.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.477e-05/0.1308, allocations: 79.92 kB / 443.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1308, allocations: 0 / 443.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1308, allocations: 3.938 kB / 443.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1308, allocations: 0 / 443.6 MB, free: 4.469 MB / 318.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.0005675/0.1314, allocations: 399.2 kB / 444 MB, free: 4.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.1314, allocations: 15.89 kB / 444 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.367e-05/0.1315, allocations: 12.84 kB / 444 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.018e-05/0.1315, allocations: 180.2 kB / 444.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.1316, allocations: 384 / 444.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.1316, allocations: 16.36 kB / 444.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.1318, allocations: 85.97 kB / 444.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1318, allocations: 0 / 444.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.1318, allocations: 7.984 kB / 444.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.1318, allocations: 3.984 kB / 444.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.1319, allocations: 47.97 kB / 444.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004568/0.1324, allocations: 320.7 kB / 444.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.1326, allocations: 90.53 kB / 444.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.755e-05/0.1327, allocations: 40.84 kB / 444.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.1327, allocations: 0 / 444.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/0.1329, allocations: 99.36 kB / 444.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.1329, allocations: 3.938 kB / 444.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003687/0.1332, allocations: 189.7 kB / 445.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.1333, allocations: 55.41 kB / 445.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.732e-05/0.1334, allocations: 117.8 kB / 445.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.1334, allocations: 33.7 kB / 445.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.168e-05/0.1334, allocations: 100.3 kB / 445.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.1335, allocations: 35.59 kB / 445.4 MB, free: 2.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/0.1335, allocations: 33.72 kB / 445.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.419e-05/0.1336, allocations: 327.1 kB / 445.8 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.638e-05/0.1336, allocations: 36.19 kB / 445.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.208e-05/0.1337, allocations: 89 kB / 445.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.1339, allocations: 117.1 kB / 446 MB, free: 1.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1339, allocations: 3.938 kB / 446 MB, free: 1.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002131/0.1341, allocations: 157.4 kB / 446.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.1342, allocations: 4 kB / 446.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1342, allocations: 4 kB / 446.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1342, allocations: 0 / 446.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.1343, allocations: 31.86 kB / 446.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.1343, allocations: 4 kB / 446.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.7e-05/0.1344, allocations: 12 kB / 446.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.1344, allocations: 12 kB / 446.2 MB, free: 1.578 MB / 318.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 9.15e-05/0.1345, allocations: 139.9 kB / 446.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.1345, allocations: 7.906 kB / 446.4 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.1345, allocations: 12.5 kB / 446.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1346, allocations: 3.938 kB / 446.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1346, allocations: 0 / 446.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1346, allocations: 3.984 kB / 446.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003848/0.135, allocations: 442.2 kB / 446.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.135, allocations: 3.938 kB / 446.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.018e-05/0.135, allocations: 11.94 kB / 446.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.135, allocations: 0 / 446.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.135, allocations: 3.984 kB / 446.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1351, allocations: 0 / 446.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1351, allocations: 4 kB / 446.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002376/0.1353, allocations: 255.4 kB / 447.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.334e-05/0.1353, allocations: 88.94 kB / 447.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.1354, allocations: 4 kB / 447.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.1355, allocations: 11.98 kB / 447.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.1355, allocations: 7.984 kB / 447.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.1355, allocations: 8 kB / 447.2 MB, free: 500 kB / 318.1 MB Notification: Performance of sorting global known variables: time 3.892e-05/0.1356, allocations: 95.2 kB / 447.3 MB, free: 404 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1356, allocations: 0 / 447.3 MB, free: 404 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.1358, allocations: 24 kB / 447.4 MB, free: 380 kB / 318.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.183e-05/0.1359, allocations: 99.53 kB / 447.4 MB, free: 272 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002268/0.1362, allocations: 111.8 kB / 447.6 MB, free: 160 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1362, allocations: 0 / 447.6 MB, free: 160 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.863e-05/0.1363, allocations: 55.91 kB / 447.6 MB, free: 104 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.1366, allocations: 19.92 kB / 447.6 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.1372, allocations: 229.5 kB / 447.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.1376, allocations: 0.6962 MB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.772e-05/0.1376, allocations: 15.44 kB / 448.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1376, allocations: 4 kB / 448.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Templates: time 0.003054/0.1407, allocations: 1.207 MB / 449.8 MB, free: 13.88 MB / 334.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