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.001115/0.001115, allocations: 110.1 kB / 17.86 MB, free: 5.504 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.001169/0.001169, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.458/1.458, allocations: 222.9 MB / 242.4 MB, free: 15.45 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.2088/0.2088, allocations: 44.18 MB / 336.8 MB, free: 2.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 57.88 kB / 408.3 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 60.83 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002699/0.1104, allocations: 1.575 MB / 470.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007421/0.1112, allocations: 490.8 kB / 471.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.305e-05/0.1113, allocations: 4 kB / 471.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.661e-05/0.1113, allocations: 7.922 kB / 471.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.676e-05/0.1114, allocations: 7.875 kB / 471.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.1116, allocations: 35.89 kB / 471.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.1117, allocations: 71.84 kB / 471.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.1118, allocations: 27.95 kB / 471.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.1119, allocations: 39.8 kB / 471.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.23e-05/0.112, allocations: 35.83 kB / 471.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.112, allocations: 4 kB / 471.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.731e-05/0.1121, allocations: 8 kB / 471.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.533e-05/0.1121, allocations: 15.92 kB / 471.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.042e-05/0.1121, allocations: 31.86 kB / 471.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.661e-05/0.1122, allocations: 44.19 kB / 471.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1122, allocations: 0 / 471.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1123, allocations: 0 / 471.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.1123, allocations: 8 kB / 471.6 MB, free: 12.43 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.0006282/0.1129, allocations: 399.2 kB / 472 MB, free: 12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.1129, allocations: 12.03 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.205e-05/0.113, allocations: 8.844 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.1131, allocations: 180.2 kB / 472.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1131, allocations: 8.375 kB / 472.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.1132, allocations: 8.375 kB / 472.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.1134, allocations: 89.89 kB / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1134, allocations: 4 kB / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.1134, allocations: 0 / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1134, allocations: 0 / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.1136, allocations: 47.91 kB / 472.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000518/0.1141, allocations: 332.7 kB / 472.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.1143, allocations: 90.48 kB / 472.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.85e-05/0.1144, allocations: 40.84 kB / 472.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.1144, allocations: 4 kB / 472.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.1146, allocations: 95.3 kB / 472.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.1146, allocations: 7.938 kB / 472.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004247/0.1151, allocations: 192.8 kB / 473.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.1151, allocations: 55.41 kB / 473.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.94e-05/0.1152, allocations: 117.8 kB / 473.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.1152, allocations: 33.7 kB / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.22e-05/0.1153, allocations: 88.42 kB / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.1153, allocations: 39.53 kB / 473.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.228e-05/0.1154, allocations: 37.7 kB / 473.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1155, allocations: 330.8 kB / 473.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.491e-05/0.1156, allocations: 31.98 kB / 473.8 MB, free: 10.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.1157, allocations: 79.31 kB / 473.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.1159, allocations: 125.2 kB / 474 MB, free: 9.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1159, allocations: 0 / 474 MB, free: 9.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000265/0.1162, allocations: 153.4 kB / 474.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1162, allocations: 12.16 kB / 474.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1162, allocations: 3.984 kB / 474.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1162, allocations: 4 kB / 474.1 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.1164, allocations: 19.88 kB / 474.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1164, allocations: 7.984 kB / 474.2 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.032e-05/0.1164, allocations: 23.84 kB / 474.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.1165, allocations: 4 kB / 474.2 MB, free: 9.543 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 9.281e-05/0.1166, allocations: 132 kB / 474.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.1166, allocations: 11.91 kB / 474.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.353e-05/0.1166, allocations: 16.48 kB / 474.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1167, allocations: 3.938 kB / 474.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1167, allocations: 0 / 474.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1167, allocations: 4 kB / 474.4 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005131/0.1172, allocations: 446.3 kB / 474.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1172, allocations: 3.938 kB / 474.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.72e-05/0.1173, allocations: 11.98 kB / 474.8 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1173, allocations: 4 kB / 474.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.1173, allocations: 0 / 474.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1173, allocations: 4.375 kB / 474.8 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1173, allocations: 0 / 474.8 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.1176, allocations: 243.4 kB / 475.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.923e-05/0.1177, allocations: 88.89 kB / 475.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.1177, allocations: 11.94 kB / 475.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.1178, allocations: 11.98 kB / 475.2 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.1179, allocations: 7.984 kB / 475.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.1179, allocations: 7.938 kB / 475.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.917e-05/0.1179, allocations: 95.27 kB / 475.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1179, allocations: 0 / 475.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.1182, allocations: 24 kB / 475.3 MB, free: 8.336 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 9.839e-05/0.1183, allocations: 103.7 kB / 475.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002355/0.1186, allocations: 107.9 kB / 475.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1186, allocations: 0 / 475.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.1187, allocations: 53.67 kB / 475.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.119, allocations: 19.92 kB / 475.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/0.1194, allocations: 243.2 kB / 475.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.1196, allocations: 0.6926 MB / 476.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.071e-05/0.1197, allocations: 15.42 kB / 476.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1197, allocations: 3.938 kB / 476.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of Templates: time 0.002581/0.1223, allocations: 1.2 MB / 477.7 MB, free: 5.852 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches