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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 77.7 kB / 20.51 MB, free: 1.277 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 160.5 kB / 23.76 MB, free: 4.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 158.6 MB / 185.5 MB, free: 6.23 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.218/0.218, allocations: 32.38 MB / 270.1 MB, free: 2.703 MB / 254.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,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=5041,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") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002356/0.002356, allocations: 71.89 kB / 407.7 MB, free: 5.547 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1369, allocations: 61.04 MB / 468.8 MB, free: 8.316 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.004271/0.1411, allocations: 1.51 MB / 470.3 MB, free: 6.797 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.1425, allocations: 0.4955 MB / 470.8 MB, free: 6.293 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.421e-05/0.1426, allocations: 7.938 kB / 470.8 MB, free: 6.285 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.49e-05/0.1426, allocations: 3.938 kB / 470.8 MB, free: 6.281 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.1427, allocations: 19.86 kB / 470.8 MB, free: 6.262 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.143, allocations: 39.88 kB / 470.9 MB, free: 6.223 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.1432, allocations: 87.7 kB / 470.9 MB, free: 6.137 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.1433, allocations: 8 kB / 471 MB, free: 6.129 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.1435, allocations: 39.89 kB / 471 MB, free: 6.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.1436, allocations: 39.78 kB / 471 MB, free: 6.051 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.092e-05/0.1436, allocations: 12 kB / 471 MB, free: 6.039 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.281e-05/0.1436, allocations: 8 kB / 471.1 MB, free: 6.031 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.365e-05/0.1437, allocations: 15.92 kB / 471.1 MB, free: 6.016 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.501e-05/0.1437, allocations: 35.84 kB / 471.1 MB, free: 5.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.1439, allocations: 75.7 kB / 471.2 MB, free: 5.906 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1439, allocations: 0 / 471.2 MB, free: 5.906 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1439, allocations: 3.938 kB / 471.2 MB, free: 5.902 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.1439, allocations: 0 / 471.2 MB, free: 5.902 MB / 446.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.000822/0.1447, allocations: 322.1 kB / 471.5 MB, free: 5.559 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.1448, allocations: 8.031 kB / 471.5 MB, free: 5.551 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.474e-05/0.1448, allocations: 12.88 kB / 471.5 MB, free: 5.539 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.145, allocations: 126.4 kB / 471.6 MB, free: 5.391 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.145, allocations: 4.375 kB / 471.6 MB, free: 5.387 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.145, allocations: 12.38 kB / 471.7 MB, free: 5.375 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.1452, allocations: 89.95 kB / 471.7 MB, free: 5.281 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1453, allocations: 0 / 471.7 MB, free: 5.281 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.1453, allocations: 4 kB / 471.7 MB, free: 5.277 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.1453, allocations: 0 / 471.7 MB, free: 5.277 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.1454, allocations: 47.97 kB / 471.8 MB, free: 5.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.146, allocations: 260.4 kB / 472.1 MB, free: 4.945 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.1462, allocations: 78.48 kB / 472.1 MB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1463, allocations: 36.84 kB / 472.2 MB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.1463, allocations: 4 kB / 472.2 MB, free: 4.816 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.1466, allocations: 99.36 kB / 472.3 MB, free: 4.707 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.1466, allocations: 0 / 472.3 MB, free: 4.707 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005399/0.1472, allocations: 193.6 kB / 472.5 MB, free: 4.512 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.316e-05/0.1472, allocations: 55.41 kB / 472.5 MB, free: 4.445 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1474, allocations: 125.7 kB / 472.6 MB, free: 4.312 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.1474, allocations: 33.7 kB / 472.7 MB, free: 4.273 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.1475, allocations: 92.42 kB / 472.8 MB, free: 4.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.936e-05/0.1475, allocations: 31.73 kB / 472.8 MB, free: 4.148 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.844e-05/0.1476, allocations: 37.7 kB / 472.8 MB, free: 4.105 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.1478, allocations: 327 kB / 473.1 MB, free: 3.777 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.1479, allocations: 35.98 kB / 473.2 MB, free: 3.742 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.1481, allocations: 92.94 kB / 473.3 MB, free: 3.633 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.1483, allocations: 117.1 kB / 473.4 MB, free: 3.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1483, allocations: 0 / 473.4 MB, free: 3.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003366/0.1487, allocations: 157.5 kB / 473.5 MB, free: 3.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1487, allocations: 8 kB / 473.5 MB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.1487, allocations: 0 / 473.5 MB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1487, allocations: 7.984 kB / 473.5 MB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.1488, allocations: 19.94 kB / 473.6 MB, free: 3.305 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-05/0.1488, allocations: 11.92 kB / 473.6 MB, free: 3.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.854e-05/0.1489, allocations: 11.89 kB / 473.6 MB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.1489, allocations: 11.94 kB / 473.6 MB, free: 3.27 MB / 446.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.0001283/0.1491, allocations: 127.8 kB / 473.7 MB, free: 3.137 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.1491, allocations: 11.89 kB / 473.7 MB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.1491, allocations: 16.45 kB / 473.8 MB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1491, allocations: 4 kB / 473.8 MB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1491, allocations: 3.938 kB / 473.8 MB, free: 3.102 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.1491, allocations: 3.984 kB / 473.8 MB, free: 3.098 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006085/0.1498, allocations: 370.6 kB / 474.1 MB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1498, allocations: 0 / 474.1 MB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.936e-05/0.1498, allocations: 11.92 kB / 474.1 MB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1498, allocations: 4 kB / 474.1 MB, free: 2.684 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.1498, allocations: 7.938 kB / 474.2 MB, free: 2.676 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.1498, allocations: 0 / 474.2 MB, free: 2.676 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1498, allocations: 7.984 kB / 474.2 MB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004138/0.1503, allocations: 259.6 kB / 474.4 MB, free: 2.398 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.607e-05/0.1503, allocations: 16.27 kB / 474.4 MB, free: 2.383 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.1503, allocations: 7.938 kB / 474.4 MB, free: 2.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1504, allocations: 7.984 kB / 474.4 MB, free: 2.367 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.1505, allocations: 11.98 kB / 474.5 MB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.1505, allocations: 11.92 kB / 474.5 MB, free: 2.344 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.017e-05/0.1506, allocations: 87.28 kB / 474.6 MB, free: 2.258 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1506, allocations: 0 / 474.6 MB, free: 2.258 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002837/0.1509, allocations: 35.92 kB / 474.6 MB, free: 2.223 MB / 446.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.0001216/0.151, allocations: 95.25 kB / 474.7 MB, free: 2.121 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003806/0.1514, allocations: 99.89 kB / 474.8 MB, free: 2.023 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1514, allocations: 0 / 474.8 MB, free: 2.023 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.1515, allocations: 43.92 kB / 474.8 MB, free: 1.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.1518, allocations: 11.98 kB / 474.8 MB, free: 1.969 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005189/0.1523, allocations: 211.9 kB / 475 MB, free: 1.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.506e-05/0.1524, allocations: 79.27 kB / 475.1 MB, free: 1.633 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.584e-05/0.1524, allocations: 12.97 kB / 475.1 MB, free: 1.621 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.1525, allocations: 16.5 kB / 475.1 MB, free: 1.605 MB / 446.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1525, allocations: 0 / 475.1 MB, free: 1.605 MB / 446.1 MB Notification: Performance of Templates: time 0.004382/0.1569, allocations: 1.018 MB / 476.2 MB, free: 0.6016 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.262795831076801]