Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo", uses=false) 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/ClaRa 1.8.2-main/package.mo", uses=false) Using package ClaRa with version 1.8.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/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) Using package SMArtIInt with version 0.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo) Using package TILMedia with version 1.8.2 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo) Running command: "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.testTableGain,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_testTableGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.testTableGain,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_testTableGain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo): time 0.1162/0.1162, allocations: 23.03 MB / 38.66 MB, free: 1.445 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo): time 0.00893/0.008931, allocations: 1.436 MB / 47.31 MB, free: 2.121 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 103.9 kB / 54.94 MB, free: 6.102 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 199.5 kB / 62.69 MB, free: 14.62 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 293.2 MB, free: 13.22 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8823/0.8823, allocations: 127.5 MB / 477.6 MB, free: 92 kB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003506/0.003506, allocations: 135.8 kB / 0.6419 GB, free: 13.28 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4334/0.4369, allocations: 82.43 MB / 0.7224 GB, free: 9.477 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testTableGain): time 0.003769/0.4407, allocations: 2.351 MB / 0.7247 GB, free: 7.676 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.000882/0.4416, allocations: 498 kB / 0.7251 GB, free: 7.297 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.491e-05/0.4417, allocations: 1.375 kB / 0.7251 GB, free: 7.297 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.442, allocations: 86.06 kB / 0.7252 GB, free: 7.246 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 0.0002275/0.4422, allocations: 87.11 kB / 0.7253 GB, free: 7.188 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004324/0.4427, allocations: 189.2 kB / 0.7255 GB, free: 7.062 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.0002715/0.443, allocations: 154.7 kB / 0.7256 GB, free: 6.973 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.4431, allocations: 22.61 kB / 0.7257 GB, free: 6.961 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.4432, allocations: 63.38 kB / 0.7257 GB, free: 6.922 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.4433, allocations: 82.05 kB / 0.7258 GB, free: 6.875 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.4434, allocations: 10.56 kB / 0.7258 GB, free: 6.871 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 8.574e-05/0.4435, allocations: 35.5 kB / 0.7258 GB, free: 6.859 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 8.168e-05/0.4435, allocations: 49.42 kB / 0.7259 GB, free: 6.828 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 7.903e-05/0.4436, allocations: 61.91 kB / 0.7259 GB, free: 6.777 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.4439, allocations: 166.7 kB / 0.7261 GB, free: 6.668 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.4439, allocations: 0 / 0.7261 GB, free: 6.668 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.704e-06/0.4439, allocations: 0 / 0.7261 GB, free: 6.668 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.4439, allocations: 1.094 kB / 0.7261 GB, free: 6.668 MB / 0.5138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006668/0.4446, allocations: 489.2 kB / 0.7266 GB, free: 6.191 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.4446, allocations: 9.906 kB / 0.7266 GB, free: 6.191 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.209e-05/0.4447, allocations: 45.11 kB / 0.7266 GB, free: 6.141 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.4447, allocations: 21.11 kB / 0.7266 GB, free: 6.129 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.445, allocations: 257.5 kB / 0.7269 GB, free: 5.871 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.445, allocations: 1.844 kB / 0.7269 GB, free: 5.871 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.4451, allocations: 3.375 kB / 0.7269 GB, free: 5.871 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.4453, allocations: 82.22 kB / 0.727 GB, free: 5.809 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.4453, allocations: 0 / 0.727 GB, free: 5.809 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.4453, allocations: 5.156 kB / 0.727 GB, free: 5.805 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4453, allocations: 1.188 kB / 0.727 GB, free: 5.805 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.4455, allocations: 68.98 kB / 0.727 GB, free: 5.77 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005522/0.4461, allocations: 376.5 kB / 0.7274 GB, free: 5.414 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.4463, allocations: 86.31 kB / 0.7275 GB, free: 5.355 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.4465, allocations: 38.72 kB / 0.7275 GB, free: 5.332 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.4465, allocations: 5.359 kB / 0.7275 GB, free: 5.328 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.4465, allocations: 34.55 kB / 0.7276 GB, free: 5.285 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.4465, allocations: 1.375 kB / 0.7276 GB, free: 5.285 MB / 0.5138 GB Notification: Performance of matching and sorting (n=5): time 0.0004282/0.447, allocations: 140.6 kB / 0.7277 GB, free: 5.199 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.447, allocations: 56.72 kB / 0.7278 GB, free: 5.133 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.4474, allocations: 302.5 kB / 0.728 GB, free: 4.945 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.4474, allocations: 25.7 kB / 0.7281 GB, free: 4.914 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 9.742e-05/0.4475, allocations: 138.9 kB / 0.7282 GB, free: 4.785 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.4475, allocations: 13.34 kB / 0.7282 GB, free: 4.773 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.4476, allocations: 15.09 kB / 0.7282 GB, free: 4.758 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.4477, allocations: 341.2 kB / 0.7286 GB, free: 4.422 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.4478, allocations: 26.27 kB / 0.7286 GB, free: 4.41 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.554e-05/0.4479, allocations: 27.31 kB / 0.7286 GB, free: 4.398 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.4482, allocations: 70.7 kB / 0.7287 GB, free: 4.359 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4482, allocations: 0 / 0.7287 GB, free: 4.359 MB / 0.5138 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002655/0.4484, allocations: 115.5 kB / 0.7288 GB, free: 4.285 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.4485, allocations: 6.219 kB / 0.7288 GB, free: 4.285 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.4485, allocations: 1.094 kB / 0.7288 GB, free: 4.285 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.4485, allocations: 0 / 0.7288 GB, free: 4.285 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.4486, allocations: 14.55 kB / 0.7288 GB, free: 4.281 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.4486, allocations: 3.938 kB / 0.7288 GB, free: 4.277 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.743e-05/0.4487, allocations: 15.78 kB / 0.7288 GB, free: 4.266 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.4487, allocations: 2.688 kB / 0.7288 GB, free: 4.266 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.0001276/0.4488, allocations: 142.3 kB / 0.729 GB, free: 4.133 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.4489, allocations: 15.25 kB / 0.729 GB, free: 4.125 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003162/0.4492, allocations: 126 kB / 0.7291 GB, free: 4.039 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.4492, allocations: 0.5 kB / 0.7291 GB, free: 4.039 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4492, allocations: 1.469 kB / 0.7291 GB, free: 4.039 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.4492, allocations: 7.922 kB / 0.7291 GB, free: 4.031 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002684/0.4495, allocations: 230.5 kB / 0.7293 GB, free: 3.789 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.4495, allocations: 4 kB / 0.7293 GB, free: 3.785 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.834e-05/0.4496, allocations: 18.08 kB / 0.7293 GB, free: 3.777 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4496, allocations: 1.906 kB / 0.7293 GB, free: 3.777 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.4496, allocations: 4 kB / 0.7294 GB, free: 3.773 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4496, allocations: 0 / 0.7294 GB, free: 3.773 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4496, allocations: 1.438 kB / 0.7294 GB, free: 3.773 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003402/0.45, allocations: 209.6 kB / 0.7296 GB, free: 3.598 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 8.975e-05/0.4501, allocations: 95.06 kB / 0.7296 GB, free: 3.492 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.4501, allocations: 4 kB / 0.7296 GB, free: 3.488 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.114e-05/0.4502, allocations: 12.36 kB / 0.7297 GB, free: 3.48 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.4503, allocations: 5.594 kB / 0.7297 GB, free: 3.477 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.4503, allocations: 5.562 kB / 0.7297 GB, free: 3.473 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0002652/0.4505, allocations: 225.2 kB / 0.7299 GB, free: 3.332 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4505, allocations: 0 / 0.7299 GB, free: 3.332 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0002492/0.4508, allocations: 19.16 kB / 0.7299 GB, free: 3.328 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.001857/0.4527, allocations: 0.9905 MB / 0.7309 GB, free: 2.535 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0002745/0.4529, allocations: 75.31 kB / 0.7309 GB, free: 2.5 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.453, allocations: 0 / 0.7309 GB, free: 2.5 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.4531, allocations: 40.84 kB / 0.731 GB, free: 2.48 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.4535, allocations: 32.55 kB / 0.731 GB, free: 2.465 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.456, allocations: 1.97 MB / 0.7329 GB, free: 0.9023 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.4564, allocations: 0.7307 MB / 0.7336 GB, free: 184 kB / 0.5138 GB Notification: Performance of simCode: alias equations: time 8.832e-05/0.4565, allocations: 29.47 kB / 0.7337 GB, free: 172 kB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.785e-05/0.4566, allocations: 51.72 kB / 0.7337 GB, free: 128 kB / 0.5138 GB Notification: Performance of SimCode: time 2.054e-06/0.4566, allocations: 4 kB / 0.7337 GB, free: 124 kB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.4812, allocations: 3.903 MB / 0.7375 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.373, allocations: 11.55 kB / 0.7376 GB, free: 14.06 MB / 0.5294 GB (rm -f ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain.pipe ; mkfifo ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain.pipe ; head -c 1048576 < ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain.pipe >> ../files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain_res.mat --tempDir=temp_ClaRa_ClaRa_Components_Utilities_Blocks_Check_testTableGain_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ClaRa_ClaRa_Components_Utilities_Blocks_Check_testTableGain.fmu > ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain.pipe 2>&1) diffSimulationResults("ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.testTableGain.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.testTableGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches