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.001135/0.001135, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001086/0.001086, allocations: 192 kB / 18.56 MB, free: 4.434 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.294/1.294, allocations: 222.9 MB / 242.2 MB, free: 15.17 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.2007/0.2007, allocations: 44.2 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 60.36 kB / 408.4 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1246, allocations: 60.83 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002829/0.1275, allocations: 1.518 MB / 470.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008437/0.1283, allocations: 494.8 kB / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.389e-05/0.1284, allocations: 0 / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.854e-05/0.1284, allocations: 7.875 kB / 471.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.731e-05/0.1285, allocations: 15.84 kB / 471.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.1287, allocations: 39.91 kB / 471.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.1289, allocations: 91.69 kB / 471.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.129, allocations: 15.98 kB / 471.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1291, allocations: 39.84 kB / 471.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.086e-05/0.1292, allocations: 39.83 kB / 471.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.1292, allocations: 8 kB / 471.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.771e-05/0.1293, allocations: 11.94 kB / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.1293, allocations: 11.98 kB / 471.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.303e-05/0.1294, allocations: 43.78 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.1295, allocations: 68.06 kB / 471.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1295, allocations: 4 kB / 471.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1295, allocations: 4 kB / 471.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1295, allocations: 0 / 471.6 MB, free: 11.98 MB / 350.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.0006839/0.1302, allocations: 399.2 kB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.1303, allocations: 12.03 kB / 472 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.935e-05/0.1303, allocations: 8.844 kB / 472.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.1305, allocations: 176.2 kB / 472.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.1305, allocations: 16.36 kB / 472.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/0.1305, allocations: 4.375 kB / 472.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.1307, allocations: 92.7 kB / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.1307, allocations: 0 / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.1307, allocations: 0 / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.1307, allocations: 0 / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.1309, allocations: 43.97 kB / 472.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005739/0.1315, allocations: 332.6 kB / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.1317, allocations: 90.53 kB / 472.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.736e-05/0.1317, allocations: 45 kB / 472.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.1318, allocations: 7.984 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.132, allocations: 99.3 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.532e-06/0.132, allocations: 4 kB / 472.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004122/0.1324, allocations: 181.5 kB / 473.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.1325, allocations: 55.41 kB / 473.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.029e-05/0.1326, allocations: 117.8 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.1326, allocations: 33.7 kB / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.845e-05/0.1326, allocations: 92.41 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.701e-05/0.1327, allocations: 35.55 kB / 473.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.313e-05/0.1328, allocations: 41.7 kB / 473.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1329, allocations: 322.8 kB / 473.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.394e-05/0.133, allocations: 35.97 kB / 473.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.1331, allocations: 82.94 kB / 473.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.1333, allocations: 117.1 kB / 474 MB, free: 9.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1333, allocations: 0 / 474 MB, free: 9.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002555/0.1335, allocations: 161.5 kB / 474.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1335, allocations: 8 kB / 474.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-06/0.1336, allocations: 0 / 474.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.1336, allocations: 4 kB / 474.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1337, allocations: 23.86 kB / 474.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.1337, allocations: 4 kB / 474.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.096e-05/0.1338, allocations: 15.84 kB / 474.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.1338, allocations: 11.98 kB / 474.3 MB, free: 9.098 MB / 350.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.0001038/0.1339, allocations: 132 kB / 474.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.1339, allocations: 11.91 kB / 474.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.213e-05/0.134, allocations: 8.5 kB / 474.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/0.134, allocations: 3.938 kB / 474.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.134, allocations: 4 kB / 474.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.134, allocations: 3.984 kB / 474.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004845/0.1345, allocations: 445.7 kB / 474.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.1345, allocations: 3.938 kB / 474.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.367e-05/0.1346, allocations: 16 kB / 474.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1346, allocations: 0 / 474.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.1346, allocations: 7.984 kB / 474.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1346, allocations: 0 / 474.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1346, allocations: 0 / 474.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002885/0.1349, allocations: 247.4 kB / 475.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.616e-05/0.1349, allocations: 92.89 kB / 475.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.135, allocations: 4 kB / 475.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.1351, allocations: 11.98 kB / 475.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.1351, allocations: 11.92 kB / 475.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.1352, allocations: 8.375 kB / 475.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.003e-05/0.1352, allocations: 99.14 kB / 475.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1352, allocations: 4 kB / 475.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000236/0.1355, allocations: 20 kB / 475.4 MB, free: 7.883 MB / 350.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 8.917e-05/0.1356, allocations: 99.19 kB / 475.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.1358, allocations: 119.8 kB / 475.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1359, allocations: 0 / 475.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.136, allocations: 43.98 kB / 475.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.1362, allocations: 23.2 kB / 475.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.1367, allocations: 203.7 kB / 475.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.137, allocations: 0.6924 MB / 476.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.846e-05/0.137, allocations: 12.88 kB / 476.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.188e-05/0.137, allocations: 11.44 kB / 476.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.137, allocations: 0 / 476.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of Templates: time 0.003026/0.1401, allocations: 0.9963 MB / 477.6 MB, free: 5.641 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches