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: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_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.0008287/0.0008288, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.0009108/0.000911, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.187/1.187, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.17/0.17, allocations: 44.25 MB / 337.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002885, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09352, allocations: 61.92 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001531/0.09509, allocations: 1.24 MB / 473.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006462/0.09575, allocations: 478.9 kB / 474.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.346e-05/0.0958, allocations: 0 / 474.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.913e-05/0.09583, allocations: 3.938 kB / 474.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.582e-05/0.09591, allocations: 19.84 kB / 474.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.09611, allocations: 27.97 kB / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.09622, allocations: 87.7 kB / 474.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.57e-05/0.09631, allocations: 11.98 kB / 474.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.552e-05/0.09641, allocations: 43.83 kB / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.068e-05/0.09649, allocations: 35.84 kB / 474.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.09652, allocations: 7.938 kB / 474.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.412e-05/0.09654, allocations: 4 kB / 474.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.352e-05/0.09657, allocations: 11.98 kB / 474.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.09664, allocations: 61.48 kB / 474.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.923e-05/0.09674, allocations: 75.97 kB / 474.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.09675, allocations: 0 / 474.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09676, allocations: 0 / 474.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.09676, allocations: 0 / 474.4 MB, free: 11.14 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.0005735/0.09734, allocations: 389.5 kB / 474.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.09738, allocations: 12.03 kB / 474.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.794e-05/0.09743, allocations: 34.75 kB / 474.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.09746, allocations: 12.84 kB / 474.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.09758, allocations: 180.2 kB / 475.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.0976, allocations: 8.375 kB / 475.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.09763, allocations: 8.375 kB / 475.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.0978, allocations: 89.77 kB / 475.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.09782, allocations: 0 / 475.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.09783, allocations: 0 / 475.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.09784, allocations: 4 kB / 475.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.09797, allocations: 51.91 kB / 475.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004627/0.09845, allocations: 324.8 kB / 475.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.09863, allocations: 94.48 kB / 475.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.632e-05/0.09872, allocations: 48.84 kB / 475.7 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.09875, allocations: 11.97 kB / 475.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.09894, allocations: 103.2 kB / 475.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.09895, allocations: 0 / 475.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000401/0.09936, allocations: 189 kB / 476 MB, free: 9.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.09941, allocations: 59.52 kB / 476 MB, free: 9.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.706e-05/0.0995, allocations: 121.7 kB / 476.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.09953, allocations: 33.7 kB / 476.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.779e-05/0.09958, allocations: 88.42 kB / 476.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.09962, allocations: 35.55 kB / 476.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.09966, allocations: 25.7 kB / 476.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.619e-05/0.09976, allocations: 326.8 kB / 476.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.539e-05/0.09985, allocations: 35.98 kB / 476.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.09996, allocations: 86.56 kB / 476.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.1002, allocations: 125 kB / 476.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1002, allocations: 0 / 476.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002524/0.1004, allocations: 165.7 kB / 477 MB, free: 8.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.1005, allocations: 14.48 kB / 477.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.1005, allocations: 0 / 477.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.1005, allocations: 4 kB / 477.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.1006, allocations: 27.86 kB / 477.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1006, allocations: 0 / 477.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.937e-05/0.1007, allocations: 19.84 kB / 477.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.1007, allocations: 4 kB / 477.1 MB, free: 8.203 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.073e-05/0.1008, allocations: 136 kB / 477.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.1008, allocations: 7.906 kB / 477.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.776e-05/0.1008, allocations: 12.48 kB / 477.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1008, allocations: 7.938 kB / 477.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1008, allocations: 0 / 477.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.1009, allocations: 0 / 477.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004908/0.1013, allocations: 450.4 kB / 477.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1014, allocations: 3.938 kB / 477.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.779e-05/0.1014, allocations: 7.984 kB / 477.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1014, allocations: 4 kB / 477.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.1014, allocations: 0 / 477.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1015, allocations: 0 / 477.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1015, allocations: 0 / 477.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002845/0.1017, allocations: 259.4 kB / 478 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.1018, allocations: 92.89 kB / 478.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.1018, allocations: 11.94 kB / 478.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.657e-05/0.1019, allocations: 7.984 kB / 478.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.102, allocations: 7.984 kB / 478.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.102, allocations: 12.31 kB / 478.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.22e-05/0.102, allocations: 95.2 kB / 478.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1021, allocations: 8 kB / 478.2 MB, free: 7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.1023, allocations: 20 kB / 478.2 MB, free: 6.98 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 0.0005227/0.1028, allocations: 0.787 MB / 479 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002174/0.103, allocations: 118 kB / 479.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1031, allocations: 0 / 479.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.976e-05/0.1032, allocations: 51.92 kB / 479.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.1034, allocations: 11.98 kB / 479.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.105, allocations: 1.656 MB / 480.9 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.1052, allocations: 0.7042 MB / 481.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.457e-05/0.1053, allocations: 12.88 kB / 481.6 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.1053, allocations: 19.44 kB / 481.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1053, allocations: 0 / 481.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01388/0.1192, allocations: 1.89 MB / 483.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/0.1195, allocations: 186.1 kB / 483.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/1.72, allocations: 0 / 483.7 MB, free: 1.426 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > 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