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: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 105.2 kB / 16.4 MB, free: 6.508 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.0018/0.0018, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.501/1.501, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2239/0.2239, allocations: 43.53 MB / 314.1 MB, free: 444 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.001635/0.001635, allocations: 65.47 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1173, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002921/0.1203, allocations: 1.535 MB / 0.4889 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009201/0.1213, allocations: 0.5269 MB / 0.4894 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.19e-05/0.1213, allocations: 0 / 0.4894 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.103e-05/0.1214, allocations: 3.938 kB / 0.4894 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.025e-05/0.1215, allocations: 19.84 kB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.1217, allocations: 35.89 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.1219, allocations: 91.7 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.122, allocations: 19.92 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.1221, allocations: 47.83 kB / 0.4896 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.669e-05/0.1222, allocations: 31.84 kB / 0.4896 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.1223, allocations: 8 kB / 0.4896 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.752e-05/0.1223, allocations: 8 kB / 0.4896 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.024e-05/0.1223, allocations: 19.92 kB / 0.4897 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.748e-05/0.1224, allocations: 39.78 kB / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.1225, allocations: 75.77 kB / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1225, allocations: 4 kB / 0.4898 GB, free: 9.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1225, allocations: 3.938 kB / 0.4898 GB, free: 9.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1225, allocations: 0 / 0.4898 GB, free: 9.82 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.0006578/0.1232, allocations: 399.2 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1232, allocations: 11.89 kB / 0.4902 GB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.118e-05/0.1233, allocations: 38.75 kB / 0.4902 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.1233, allocations: 12.84 kB / 0.4902 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.1235, allocations: 176.2 kB / 0.4904 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.1235, allocations: 4.375 kB / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.1235, allocations: 8.375 kB / 0.4904 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.1237, allocations: 97.7 kB / 0.4905 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.1238, allocations: 0 / 0.4905 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.1238, allocations: 3.938 kB / 0.4905 GB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.1238, allocations: 4 kB / 0.4905 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.1239, allocations: 43.97 kB / 0.4905 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005574/0.1245, allocations: 324.7 kB / 0.4909 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.1247, allocations: 94.42 kB / 0.4909 GB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1248, allocations: 40.84 kB / 0.491 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.1249, allocations: 4 kB / 0.491 GB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.1251, allocations: 103.5 kB / 0.4911 GB, free: 8.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.1251, allocations: 0 / 0.4911 GB, free: 8.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004257/0.1256, allocations: 181.5 kB / 0.4913 GB, free: 8.125 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.1256, allocations: 63.33 kB / 0.4913 GB, free: 8.051 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.671e-05/0.1257, allocations: 117.8 kB / 0.4914 GB, free: 7.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1258, allocations: 33.7 kB / 0.4915 GB, free: 7.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.352e-05/0.1258, allocations: 92.42 kB / 0.4915 GB, free: 7.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.1259, allocations: 35.55 kB / 0.4916 GB, free: 7.758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.406e-05/0.1259, allocations: 37.7 kB / 0.4916 GB, free: 7.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.126, allocations: 326.8 kB / 0.4919 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.437e-05/0.1261, allocations: 35.98 kB / 0.492 GB, free: 7.352 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.1262, allocations: 73.12 kB / 0.492 GB, free: 7.262 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.1265, allocations: 129 kB / 0.4922 GB, free: 7.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1265, allocations: 0 / 0.4922 GB, free: 7.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002646/0.1267, allocations: 157.6 kB / 0.4923 GB, free: 6.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.1268, allocations: 8 kB / 0.4923 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1268, allocations: 4 kB / 0.4923 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.1268, allocations: 7.938 kB / 0.4923 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.1269, allocations: 27.92 kB / 0.4924 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1269, allocations: 0 / 0.4924 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.244e-05/0.127, allocations: 7.906 kB / 0.4924 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.127, allocations: 12 kB / 0.4924 GB, free: 6.891 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.0001068/0.1272, allocations: 136.1 kB / 0.4925 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.1272, allocations: 15.89 kB / 0.4925 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.645e-05/0.1272, allocations: 8.5 kB / 0.4925 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1272, allocations: 8.312 kB / 0.4925 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.1273, allocations: 0 / 0.4925 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1273, allocations: 0 / 0.4925 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005277/0.1278, allocations: 438.3 kB / 0.493 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1278, allocations: 3.938 kB / 0.493 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.699e-05/0.1279, allocations: 15.98 kB / 0.493 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.1279, allocations: 0 / 0.493 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1279, allocations: 4 kB / 0.493 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1279, allocations: 0 / 0.493 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1279, allocations: 0 / 0.493 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00032/0.1282, allocations: 255.3 kB / 0.4932 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/0.1283, allocations: 88.95 kB / 0.4933 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.1283, allocations: 7.984 kB / 0.4933 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.1284, allocations: 4 kB / 0.4933 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.1285, allocations: 11.98 kB / 0.4933 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.1285, allocations: 7.984 kB / 0.4933 GB, free: 5.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.942e-05/0.1286, allocations: 91.28 kB / 0.4934 GB, free: 5.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1286, allocations: 0 / 0.4934 GB, free: 5.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002621/0.1288, allocations: 20 kB / 0.4934 GB, free: 5.691 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.0005556/0.1294, allocations: 0.7911 MB / 0.4942 GB, free: 4.875 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000309/0.1297, allocations: 112 kB / 0.4943 GB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.1297, allocations: 0 / 0.4943 GB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.1299, allocations: 55.91 kB / 0.4944 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.1301, allocations: 16.3 kB / 0.4944 GB, free: 4.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.1319, allocations: 1.645 MB / 0.496 GB, free: 2.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.1322, allocations: 0.6924 MB / 0.4967 GB, free: 2.215 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.759e-05/0.1322, allocations: 12.88 kB / 0.4967 GB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.016e-05/0.1323, allocations: 23.72 kB / 0.4967 GB, free: 2.18 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1323, allocations: 4 kB / 0.4967 GB, free: 2.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.1507, allocations: 2.218 MB / 0.4989 GB, free: 15.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.616/7.767, allocations: 11.91 kB / 0.4989 GB, free: 15.95 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > 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