Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 95.89 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001934/0.001934, allocations: 178.2 kB / 16.61 MB, free: 6.426 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.75/1.75, allocations: 205.4 MB / 222.8 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09017/0.09017, allocations: 12.6 MB / 283.6 MB, free: 8.707 MB / 238.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: Modelica_Synchronous 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.0008245/0.0008249, allocations: 20 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.095, allocations: 50.38 MB / 394.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.003661/0.09872, allocations: 2.264 MB / 397.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.101, allocations: 0.8857 MB / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002282/0.1012, allocations: 11.94 kB / 398 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.058e-05/0.1013, allocations: 23.72 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002669/0.1016, allocations: 75.69 kB / 398.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006291/0.1023, allocations: 223.5 kB / 398.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003078/0.1026, allocations: 235.5 kB / 398.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.1028, allocations: 123.4 kB / 398.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.1029, allocations: 95.5 kB / 398.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.1031, allocations: 99.41 kB / 398.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.1031, allocations: 8 kB / 398.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.1033, allocations: 47.91 kB / 399 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.122e-05/0.1033, allocations: 59.75 kB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.141e-05/0.1034, allocations: 69.52 kB / 399.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.1038, allocations: 275.6 kB / 399.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1038, allocations: 0 / 399.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1038, allocations: 0 / 399.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1038, allocations: 0 / 399.4 MB, free: 14.32 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001067/0.1049, allocations: 0.5962 MB / 399.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.105, allocations: 8.031 kB / 400 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.947e-05/0.1051, allocations: 43.48 kB / 400 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004218/0.1055, allocations: 314.7 kB / 400.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.1055, allocations: 20.56 kB / 400.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.1056, allocations: 36 kB / 400.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.1069, allocations: 0.7597 MB / 401.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1069, allocations: 0 / 401.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.1069, allocations: 12 kB / 401.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.107, allocations: 8 kB / 401.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005665/0.1075, allocations: 252.9 kB / 401.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000863/0.1084, allocations: 0.7799 MB / 402.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.1095, allocations: 0.6538 MB / 402.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000624/0.1101, allocations: 0.5938 MB / 403.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1102, allocations: 50.27 kB / 403.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.714e-06/0.1102, allocations: 4 kB / 403.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001255/0.1114, allocations: 0.6361 MB / 404.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/0.1116, allocations: 211.8 kB / 404.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.1119, allocations: 250.6 kB / 404.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.1119, allocations: 33.7 kB / 404.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.112, allocations: 156.7 kB / 404.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.1121, allocations: 47.72 kB / 404.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/0.1121, allocations: 12 kB / 404.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1122, allocations: 354.8 kB / 405.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.1124, allocations: 85.06 kB / 405.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.1128, allocations: 435 kB / 405.7 MB, free: 7.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.1131, allocations: 163.8 kB / 405.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1131, allocations: 4 kB / 405.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007516/0.1139, allocations: 0.4975 MB / 406.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1139, allocations: 12 kB / 406.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.1139, allocations: 16 kB / 406.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/0.114, allocations: 16 kB / 406.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/0.1143, allocations: 123.8 kB / 406.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.145e-05/0.1143, allocations: 23.92 kB / 406.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.1146, allocations: 47.69 kB / 406.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.1146, allocations: 36.09 kB / 406.6 MB, free: 6.402 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.1148, allocations: 189.9 kB / 406.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006292/0.1155, allocations: 365.9 kB / 407.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006917/0.1162, allocations: 372.7 kB / 407.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1162, allocations: 4 kB / 407.5 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1162, allocations: 4 kB / 407.5 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1162, allocations: 3.984 kB / 407.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003768/0.1166, allocations: 337.1 kB / 407.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.1166, allocations: 4 kB / 407.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.117, allocations: 107.9 kB / 407.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.117, allocations: 4 kB / 407.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.1171, allocations: 11.98 kB / 408 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1171, allocations: 4 kB / 408 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.1171, allocations: 3.984 kB / 408 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.1184, allocations: 0.85 MB / 408.8 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.169e-05/0.1185, allocations: 116.6 kB / 408.9 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.783e-05/0.1185, allocations: 12 kB / 408.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.1188, allocations: 35.97 kB / 409 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.1188, allocations: 7.953 kB / 409 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.1189, allocations: 20.05 kB / 409 MB, free: 3.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.119, allocations: 178 kB / 409.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.119, allocations: 0 / 409.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005055/0.1196, allocations: 79.91 kB / 409.3 MB, free: 3.594 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001786/0.1197, allocations: 127 kB / 409.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007062/0.1205, allocations: 372.5 kB / 409.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1205, allocations: 0 / 409.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1206, allocations: 32.86 kB / 409.8 MB, free: 3.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008433/0.1214, allocations: 307 kB / 410.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.1229, allocations: 0.8873 MB / 411 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.1233, allocations: 0.824 MB / 411.8 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.1234, allocations: 35.28 kB / 411.8 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.367e-05/0.1235, allocations: 31.42 kB / 411.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1235, allocations: 0 / 411.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of Templates: time 0.007959/0.1314, allocations: 4.028 MB / 415.9 MB, free: 12.9 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.makefile Environment - environmentSimulation: make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:40:63: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((integer_array_get1(_seedOut, 1, ((modelica_integer) 1)) == ((modelica_integer) 0))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:40:63: note: remove extraneous parentheses around the comparison to silence this warning if((integer_array_get1(_seedOut, 1, ((modelica_integer) 1)) == ((modelica_integer) 0))) ~ ^ ~ Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:40:63: note: use '=' to turn this equality comparison into an assignment if((integer_array_get1(_seedOut, 1, ((modelica_integer) 1)) == ((modelica_integer) 0))) ^~ = Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:45:63: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((integer_array_get1(_seedOut, 1, ((modelica_integer) 2)) == ((modelica_integer) 0))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:45:63: note: remove extraneous parentheses around the comparison to silence this warning if((integer_array_get1(_seedOut, 1, ((modelica_integer) 2)) == ((modelica_integer) 0))) ~ ^ ~ Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:45:63: note: use '=' to turn this equality comparison into an assignment if((integer_array_get1(_seedOut, 1, ((modelica_integer) 2)) == ((modelica_integer) 0))) ^~ = Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:50:63: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((integer_array_get1(_seedOut, 1, ((modelica_integer) 3)) == ((modelica_integer) 0))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:50:63: note: remove extraneous parentheses around the comparison to silence this warning if((integer_array_get1(_seedOut, 1, ((modelica_integer) 3)) == ((modelica_integer) 0))) ~ ^ ~ Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.c:50:63: note: use '=' to turn this equality comparison into an assignment if((integer_array_get1(_seedOut, 1, ((modelica_integer) 3)) == ((modelica_integer) 0))) ^~ = 3 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_records.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_records.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_01exo.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_01exo.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_02nls.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_02nls.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_03lsy.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_03lsy.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_04set.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_04set.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_05evt.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_05evt.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_06inz.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_06inz.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_07dly.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_07dly.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_08bnd.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_08bnd.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_09alg.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_09alg.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_10asr.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_10asr.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_11mix.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_11mix.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_12jac.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_12jac.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_13opt.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_13opt.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_14lnz.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_14lnz.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_15syn.o Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_15syn.c Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_15syn.c:121:157: error: passing 'modelica_integer' (aka 'long') to parameter of incompatible type 'integer_array' (aka 'struct base_array_s') data->localData[0]->realVars[30] /* sample1.noise.noise variable */ = omc_Modelica__Synchronous_RealSignals_Sampler_Utilities_Internal_random(threadData, data->localData[0]->integerVars[0] /* previous(sample1.noise.seedState[1]) variable */ ,&tmp0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_functions.h:16:127: note: passing argument to parameter '_seedIn' here modelica_real omc_Modelica__Synchronous_RealSignals_Sampler_Utilities_Internal_random(threadData_t *threadData, integer_array _seedIn, integer_array *out_seedOut); ^ 1 error generated. make: *** [: Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold_15syn.o] Error 1