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.001299/0.001299, allocations: 103.8 kB / 15.98 MB, free: 6.348 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.001335/0.001335, allocations: 189.6 kB / 16.91 MB, free: 6.191 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.327/1.327, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3052/0.3052, allocations: 43.5 MB / 313.6 MB, free: 8.301 MB / 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.001569/0.001569, allocations: 59.91 kB / 382.3 MB, free: 8.309 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.105, allocations: 57.79 MB / 440.1 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002703/0.1077, allocations: 1.591 MB / 441.7 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008702/0.1086, allocations: 0.5192 MB / 442.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.928e-05/0.1087, allocations: 3.938 kB / 442.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.342e-05/0.1088, allocations: 3.938 kB / 442.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.605e-05/0.1089, allocations: 11.88 kB / 442.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.109, allocations: 31.95 kB / 442.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.1091, allocations: 83.72 kB / 442.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.917e-05/0.1092, allocations: 23.97 kB / 442.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.1094, allocations: 39.84 kB / 442.4 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.639e-05/0.1094, allocations: 35.83 kB / 442.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.1095, allocations: 8 kB / 442.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.1095, allocations: 8 kB / 442.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.797e-05/0.1095, allocations: 27.91 kB / 442.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.841e-05/0.1096, allocations: 35.8 kB / 442.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.1097, allocations: 75.98 kB / 442.6 MB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1097, allocations: 0 / 442.6 MB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1097, allocations: 0 / 442.6 MB, free: 11.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1097, allocations: 0 / 442.6 MB, free: 11.9 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.0005679/0.1103, allocations: 399.2 kB / 443 MB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1103, allocations: 11.89 kB / 443 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.1104, allocations: 42.73 kB / 443 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.294e-05/0.1104, allocations: 8.844 kB / 443 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.1105, allocations: 180.2 kB / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.1105, allocations: 8.375 kB / 443.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.1106, allocations: 8.375 kB / 443.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.1108, allocations: 93.77 kB / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.1108, allocations: 0 / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1108, allocations: 0 / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.1108, allocations: 4 kB / 443.3 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.1109, allocations: 47.95 kB / 443.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004862/0.1114, allocations: 328.7 kB / 443.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.1116, allocations: 86.55 kB / 443.8 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.936e-05/0.1117, allocations: 40.84 kB / 443.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.1117, allocations: 4 kB / 443.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002095/0.112, allocations: 95.58 kB / 443.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 3.016e-06/0.112, allocations: 4 kB / 443.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003984/0.1124, allocations: 197.5 kB / 444.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.1124, allocations: 55.41 kB / 444.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.507e-05/0.1125, allocations: 125.7 kB / 444.3 MB, free: 9.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1126, allocations: 33.69 kB / 444.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.294e-05/0.1126, allocations: 88.42 kB / 444.4 MB, free: 9.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.726e-05/0.1127, allocations: 39.53 kB / 444.4 MB, free: 9.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-05/0.1127, allocations: 41.7 kB / 444.5 MB, free: 9.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1128, allocations: 326.8 kB / 444.8 MB, free: 9.453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.118e-05/0.1129, allocations: 31.98 kB / 444.8 MB, free: 9.422 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.113, allocations: 73.12 kB / 444.9 MB, free: 9.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.1132, allocations: 125 kB / 445 MB, free: 9.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1132, allocations: 0 / 445 MB, free: 9.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002586/0.1135, allocations: 161.5 kB / 445.2 MB, free: 9.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1135, allocations: 12 kB / 445.2 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.1135, allocations: 0 / 445.2 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1135, allocations: 7.938 kB / 445.2 MB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.1136, allocations: 23.92 kB / 445.2 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1137, allocations: 0 / 445.2 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.317e-05/0.1137, allocations: 19.83 kB / 445.3 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.1138, allocations: 8 kB / 445.3 MB, free: 8.957 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 9.975e-05/0.1139, allocations: 128.1 kB / 445.4 MB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.1139, allocations: 11.91 kB / 445.4 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.1139, allocations: 16.42 kB / 445.4 MB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1139, allocations: 7.938 kB / 445.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1139, allocations: 0 / 445.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1139, allocations: 0 / 445.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000494/0.1144, allocations: 434.4 kB / 445.8 MB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1145, allocations: 0 / 445.8 MB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.341e-05/0.1145, allocations: 15.94 kB / 445.9 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1145, allocations: 4 kB / 445.9 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.1145, allocations: 7.984 kB / 445.9 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1146, allocations: 0 / 445.9 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1146, allocations: 0 / 445.9 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.1149, allocations: 247.3 kB / 446.1 MB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.1149, allocations: 88.95 kB / 446.2 MB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.1149, allocations: 4 kB / 446.2 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.1151, allocations: 15.97 kB / 446.2 MB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.1151, allocations: 12.36 kB / 446.2 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.1151, allocations: 4 kB / 446.2 MB, free: 7.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.804e-05/0.1152, allocations: 99.2 kB / 446.3 MB, free: 7.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1152, allocations: 0 / 446.3 MB, free: 7.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.1154, allocations: 20 kB / 446.4 MB, free: 7.77 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.0005487/0.116, allocations: 0.7981 MB / 447.2 MB, free: 6.941 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002339/0.1162, allocations: 116.6 kB / 447.3 MB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1162, allocations: 0 / 447.3 MB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.1163, allocations: 51.92 kB / 447.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.1166, allocations: 11.98 kB / 447.3 MB, free: 6.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.1182, allocations: 1.654 MB / 449 MB, free: 5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.1185, allocations: 0.6962 MB / 449.7 MB, free: 4.277 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.31e-05/0.1185, allocations: 12.89 kB / 449.7 MB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.775e-05/0.1186, allocations: 27.42 kB / 449.7 MB, free: 4.242 MB / 382.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1186, allocations: 0 / 449.7 MB, free: 4.242 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3182/0.4368, allocations: 2.027 MB / 451.7 MB, free: 2.23 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002787/0.4372, allocations: 183.7 kB / 451.9 MB, free: 1.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.047/2.484, allocations: 0 / 451.9 MB, free: 1.977 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches