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.001157/0.001157, allocations: 105.5 kB / 17.77 MB, free: 5.293 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.001225/0.001224, allocations: 184.1 kB / 18.71 MB, free: 4.367 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.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2178/0.2178, allocations: 44.17 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 71.83 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4334/0.4348, allocations: 60.83 MB / 0.5184 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002768/0.4376, allocations: 1.514 MB / 0.5199 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008781/0.4385, allocations: 0.4939 MB / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.811e-05/0.4386, allocations: 1.312 kB / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.474e-05/0.4386, allocations: 5.297 kB / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.523e-05/0.4387, allocations: 15.36 kB / 0.5204 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.439, allocations: 31.23 kB / 0.5204 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.4391, allocations: 90.91 kB / 0.5205 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.4393, allocations: 12.53 kB / 0.5205 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.4394, allocations: 44.25 kB / 0.5206 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.4395, allocations: 48.52 kB / 0.5206 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.666e-05/0.4395, allocations: 7.5 kB / 0.5206 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.937e-05/0.4396, allocations: 6.688 kB / 0.5206 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.563e-05/0.4396, allocations: 16.95 kB / 0.5206 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.624e-05/0.4397, allocations: 41.14 kB / 0.5207 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.4399, allocations: 78.86 kB / 0.5208 GB, free: 1.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4399, allocations: 0.5156 kB / 0.5208 GB, free: 1.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4399, allocations: 0 / 0.5208 GB, free: 1.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.4399, allocations: 1.469 kB / 0.5208 GB, free: 1.66 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.0006669/0.4406, allocations: 400.5 kB / 0.5211 GB, free: 1.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.4406, allocations: 8.875 kB / 0.5212 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.721e-05/0.4407, allocations: 35.59 kB / 0.5212 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.968e-05/0.4407, allocations: 14.95 kB / 0.5212 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.4408, allocations: 173.8 kB / 0.5214 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.4408, allocations: 4.391 kB / 0.5214 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.485e-05/0.4409, allocations: 11.05 kB / 0.5214 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.4411, allocations: 94.38 kB / 0.5215 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.4411, allocations: 0 / 0.5215 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.4411, allocations: 5.719 kB / 0.5215 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.4412, allocations: 2.922 kB / 0.5215 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001423/0.4413, allocations: 42.17 kB / 0.5215 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005192/0.4418, allocations: 323.4 kB / 0.5218 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.442, allocations: 99.33 kB / 0.5219 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.597e-05/0.4421, allocations: 43.11 kB / 0.522 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.4422, allocations: 5.766 kB / 0.522 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/0.4424, allocations: 93.3 kB / 0.5221 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.4424, allocations: 0 / 0.5221 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004622/0.4429, allocations: 199.2 kB / 0.5222 GB, free: 432 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.4429, allocations: 56.02 kB / 0.5223 GB, free: 368 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.821e-05/0.443, allocations: 120.5 kB / 0.5224 GB, free: 256 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.4431, allocations: 33.17 kB / 0.5224 GB, free: 220 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.191e-05/0.4431, allocations: 89.14 kB / 0.5225 GB, free: 128 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.669e-05/0.4431, allocations: 35.8 kB / 0.5226 GB, free: 100 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.4432, allocations: 37.56 kB / 0.5226 GB, free: 72 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4433, allocations: 324.6 kB / 0.5229 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.908e-05/0.4434, allocations: 36.31 kB / 0.5229 GB, free: 15.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.4436, allocations: 79.72 kB / 0.523 GB, free: 15.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.4438, allocations: 122 kB / 0.5231 GB, free: 15.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.4438, allocations: 1.219 kB / 0.5231 GB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000303/0.4441, allocations: 157.2 kB / 0.5233 GB, free: 15.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.4441, allocations: 5.75 kB / 0.5233 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4441, allocations: 1.656 kB / 0.5233 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.4441, allocations: 11.59 kB / 0.5233 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.4443, allocations: 19.03 kB / 0.5233 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.4443, allocations: 2.438 kB / 0.5233 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.674e-05/0.4444, allocations: 13.72 kB / 0.5233 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.4444, allocations: 8.266 kB / 0.5233 GB, free: 15.49 MB / 398.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.0001187/0.4445, allocations: 130.1 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.4445, allocations: 13.25 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.358e-05/0.4446, allocations: 10.22 kB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.4446, allocations: 10.92 kB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4446, allocations: 0 / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.4446, allocations: 0.5156 kB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006119/0.4452, allocations: 453.2 kB / 0.5239 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4452, allocations: 0.7031 kB / 0.5239 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.26e-05/0.4453, allocations: 7.5 kB / 0.5239 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.4453, allocations: 1.938 kB / 0.5239 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.4453, allocations: 2.359 kB / 0.5239 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4453, allocations: 1.125 kB / 0.524 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.4453, allocations: 9.453 kB / 0.524 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.4457, allocations: 251.5 kB / 0.5242 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.827e-05/0.4458, allocations: 84.33 kB / 0.5243 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.4458, allocations: 7.328 kB / 0.5243 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.4459, allocations: 6.297 kB / 0.5243 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.446, allocations: 11.77 kB / 0.5243 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.446, allocations: 13.22 kB / 0.5243 GB, free: 14.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.549e-05/0.446, allocations: 95.83 kB / 0.5244 GB, free: 14.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.446, allocations: 0 / 0.5244 GB, free: 14.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002544/0.4463, allocations: 22.2 kB / 0.5244 GB, free: 14.59 MB / 398.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.0006233/0.4469, allocations: 0.7885 MB / 0.5252 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002572/0.4472, allocations: 103.6 kB / 0.5253 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4472, allocations: 0 / 0.5253 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.4473, allocations: 53.17 kB / 0.5253 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.4477, allocations: 12.3 kB / 0.5254 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/0.4496, allocations: 1.649 MB / 0.527 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.4499, allocations: 0.6958 MB / 0.5277 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.766e-05/0.4499, allocations: 10.64 kB / 0.5277 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.096e-05/0.45, allocations: 24.22 kB / 0.5277 GB, free: 11.7 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.45, allocations: 0 / 0.5277 GB, free: 11.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.4702, allocations: 2.204 MB / 0.5298 GB, free: 10.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.649/8.12, allocations: 14.23 kB / 0.5299 GB, free: 10.92 MB / 398.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