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.001072/0.001072, allocations: 118.1 kB / 17.08 MB, free: 5.992 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.001087/0.001087, allocations: 196.2 kB / 18.01 MB, free: 5.07 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.318/1.318, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.2021/0.2021, allocations: 43.52 MB / 314.8 MB, free: 448 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.001527/0.001527, allocations: 61.47 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1042, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002957/0.1073, allocations: 1.528 MB / 0.49 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009724/0.1083, allocations: 0.5269 MB / 0.4905 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.843e-05/0.1083, allocations: 0 / 0.4905 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.1084, allocations: 7.875 kB / 0.4905 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.823e-05/0.1085, allocations: 19.84 kB / 0.4906 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.1087, allocations: 35.89 kB / 0.4906 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.1089, allocations: 91.7 kB / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.109, allocations: 11.98 kB / 0.4907 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.1091, allocations: 39.89 kB / 0.4907 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.469e-05/0.1092, allocations: 39.84 kB / 0.4908 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.1092, allocations: 8 kB / 0.4908 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.1093, allocations: 8 kB / 0.4908 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.063e-05/0.1093, allocations: 27.84 kB / 0.4908 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.348e-05/0.1094, allocations: 39.78 kB / 0.4908 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.1095, allocations: 75.72 kB / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1095, allocations: 0 / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1095, allocations: 0 / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.1095, allocations: 0 / 0.4909 GB, free: 9.328 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.0006702/0.1102, allocations: 403.2 kB / 0.4913 GB, free: 8.887 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1102, allocations: 11.89 kB / 0.4913 GB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.558e-05/0.1103, allocations: 8.844 kB / 0.4913 GB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.1104, allocations: 184.1 kB / 0.4915 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1105, allocations: 8.375 kB / 0.4915 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.1105, allocations: 8.375 kB / 0.4915 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.1107, allocations: 85.95 kB / 0.4916 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.1107, allocations: 4 kB / 0.4916 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.1107, allocations: 0 / 0.4916 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1107, allocations: 4 kB / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.1109, allocations: 43.97 kB / 0.4916 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005487/0.1114, allocations: 320.8 kB / 0.492 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.1116, allocations: 102.4 kB / 0.492 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.421e-05/0.1117, allocations: 44.78 kB / 0.4921 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.1118, allocations: 0 / 0.4921 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.112, allocations: 103.5 kB / 0.4922 GB, free: 7.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.112, allocations: 0 / 0.4922 GB, free: 7.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004517/0.1125, allocations: 185.5 kB / 0.4924 GB, free: 7.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.1125, allocations: 59.41 kB / 0.4924 GB, free: 7.602 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.1126, allocations: 125.7 kB / 0.4925 GB, free: 7.469 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.1127, allocations: 29.7 kB / 0.4926 GB, free: 7.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.1127, allocations: 92.36 kB / 0.4927 GB, free: 7.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.762e-05/0.1128, allocations: 31.61 kB / 0.4927 GB, free: 7.309 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.928e-05/0.1128, allocations: 37.7 kB / 0.4927 GB, free: 7.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.113, allocations: 326.8 kB / 0.493 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.624e-05/0.1131, allocations: 31.98 kB / 0.4931 GB, free: 6.906 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.1132, allocations: 77.12 kB / 0.4931 GB, free: 6.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.1134, allocations: 125 kB / 0.4933 GB, free: 6.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1134, allocations: 4 kB / 0.4933 GB, free: 6.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002808/0.1137, allocations: 157.6 kB / 0.4934 GB, free: 6.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1137, allocations: 4 kB / 0.4934 GB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1137, allocations: 0 / 0.4934 GB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1137, allocations: 7.984 kB / 0.4934 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.1139, allocations: 24.09 kB / 0.4934 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.537e-06/0.1139, allocations: 3.938 kB / 0.4935 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.698e-05/0.114, allocations: 23.83 kB / 0.4935 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.114, allocations: 4 kB / 0.4935 GB, free: 6.441 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.0001225/0.1141, allocations: 128 kB / 0.4936 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.953e-05/0.1141, allocations: 7.906 kB / 0.4936 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.405e-05/0.1142, allocations: 12.48 kB / 0.4936 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1142, allocations: 7.938 kB / 0.4936 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1142, allocations: 4 kB / 0.4936 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1142, allocations: 3.984 kB / 0.4936 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00055/0.1148, allocations: 446.4 kB / 0.4941 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1148, allocations: 3.938 kB / 0.4941 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.476e-05/0.1148, allocations: 4.375 kB / 0.4941 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.1148, allocations: 3.984 kB / 0.4941 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1149, allocations: 8 kB / 0.4941 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1149, allocations: 3.938 kB / 0.4941 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1149, allocations: 3.938 kB / 0.4941 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.1152, allocations: 251.4 kB / 0.4943 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.1153, allocations: 88.95 kB / 0.4944 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.1153, allocations: 3.938 kB / 0.4944 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.1154, allocations: 15.98 kB / 0.4944 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.1155, allocations: 7.984 kB / 0.4944 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.1155, allocations: 4 kB / 0.4944 GB, free: 5.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.871e-05/0.1155, allocations: 95.27 kB / 0.4945 GB, free: 5.254 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1155, allocations: 0 / 0.4945 GB, free: 5.254 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.1158, allocations: 20 kB / 0.4946 GB, free: 5.234 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 0.0001099/0.1159, allocations: 107.2 kB / 0.4947 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002598/0.1162, allocations: 103.9 kB / 0.4948 GB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1162, allocations: 0 / 0.4948 GB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.1163, allocations: 52.23 kB / 0.4948 GB, free: 4.969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.1166, allocations: 24.19 kB / 0.4948 GB, free: 4.945 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004545/0.1171, allocations: 234 kB / 0.4951 GB, free: 4.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1174, allocations: 0.6924 MB / 0.4957 GB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.1174, allocations: 15.44 kB / 0.4957 GB, free: 3.945 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1174, allocations: 0 / 0.4957 GB, free: 3.945 MB / 382.1 MB Notification: Performance of Templates: time 0.00288/0.1203, allocations: 1.229 MB / 0.4969 GB, free: 2.723 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/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