Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",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.001143/0.001143, allocations: 95.62 kB / 16.3 MB, free: 5.992 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.001261/0.001261, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.372/1.372, allocations: 223.2 MB / 241.1 MB, free: 5.355 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002558/0.0002558, allocations: 7.281 kB / 300.8 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1085, allocations: 50.42 MB / 351.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.002171/0.1107, allocations: 1.517 MB / 352.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.1118, allocations: 0.6315 MB / 353.4 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.112, allocations: 7.938 kB / 353.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.802e-05/0.112, allocations: 3.938 kB / 353.4 MB, free: 9.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.1122, allocations: 27.89 kB / 353.4 MB, free: 9.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004916/0.1127, allocations: 127.7 kB / 353.5 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.1129, allocations: 83.78 kB / 353.6 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.113, allocations: 53.5 kB / 353.7 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.347e-05/0.1131, allocations: 43.72 kB / 353.7 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.39e-05/0.1132, allocations: 43.77 kB / 353.8 MB, free: 9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.1132, allocations: 4 kB / 353.8 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.909e-05/0.1133, allocations: 39.95 kB / 353.8 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.098e-05/0.1134, allocations: 31.84 kB / 353.8 MB, free: 8.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.164e-05/0.1135, allocations: 45.64 kB / 353.9 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002204/0.1137, allocations: 139.7 kB / 354 MB, free: 8.738 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1137, allocations: 4 kB / 354 MB, free: 8.734 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1137, allocations: 0 / 354 MB, free: 8.734 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1137, allocations: 0 / 354 MB, free: 8.734 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006342/0.1144, allocations: 454.7 kB / 354.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1144, allocations: 11.97 kB / 354.5 MB, free: 8.23 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.821e-05/0.1145, allocations: 42.5 kB / 354.5 MB, free: 8.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.104e-05/0.1145, allocations: 19.81 kB / 354.5 MB, free: 8.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.1148, allocations: 234.7 kB / 354.8 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.1148, allocations: 8.188 kB / 354.8 MB, free: 7.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.1148, allocations: 15.94 kB / 354.8 MB, free: 7.867 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006464/0.1155, allocations: 343.3 kB / 355.1 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1155, allocations: 0 / 355.1 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.1155, allocations: 4 kB / 355.1 MB, free: 7.508 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1156, allocations: 3.938 kB / 355.1 MB, free: 7.504 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002371/0.1158, allocations: 87.95 kB / 355.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005764/0.1164, allocations: 345.5 kB / 355.6 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005754/0.117, allocations: 290.1 kB / 355.8 MB, free: 6.707 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007538/0.1177, allocations: 0.5818 MB / 356.4 MB, free: 5.996 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/0.1178, allocations: 42.78 kB / 356.5 MB, free: 5.945 MB / 286.1 MB Notification: Performance of pre-optimization done (n=19): time 1.422e-06/0.1178, allocations: 0 / 356.5 MB, free: 5.945 MB / 286.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006263/0.1184, allocations: 332.9 kB / 356.8 MB, free: 5.598 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/0.1185, allocations: 122.7 kB / 356.9 MB, free: 5.453 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.1187, allocations: 182.5 kB / 357.1 MB, free: 5.262 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.1188, allocations: 29.7 kB / 357.1 MB, free: 5.227 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.492e-05/0.1188, allocations: 104.6 kB / 357.2 MB, free: 5.121 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.548e-05/0.1189, allocations: 19.8 kB / 357.2 MB, free: 5.102 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-06/0.1189, allocations: 4 kB / 357.2 MB, free: 5.098 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.119, allocations: 330.8 kB / 357.6 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.245e-05/0.1191, allocations: 48.28 kB / 357.6 MB, free: 4.719 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.1193, allocations: 164.3 kB / 357.8 MB, free: 4.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.1194, allocations: 67.95 kB / 357.8 MB, free: 4.434 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.1194, allocations: 0 / 357.8 MB, free: 4.434 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003143/0.1197, allocations: 221.4 kB / 358.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.1197, allocations: 8 kB / 358.1 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1197, allocations: 4 kB / 358.1 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.1198, allocations: 7.984 kB / 358.1 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.1199, allocations: 51.91 kB / 358.1 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.1199, allocations: 4 kB / 358.1 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.12, allocations: 12.08 kB / 358.1 MB, free: 4.125 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.1201, allocations: 16.22 kB / 358.2 MB, free: 4.109 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001379/0.1202, allocations: 156.7 kB / 358.3 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.1205, allocations: 171.6 kB / 358.5 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003489/0.1209, allocations: 183.4 kB / 358.7 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1209, allocations: 4 kB / 358.7 MB, free: 3.586 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1209, allocations: 3.938 kB / 358.7 MB, free: 3.582 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.1209, allocations: 0 / 358.7 MB, free: 3.582 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.1211, allocations: 233.4 kB / 358.9 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.1211, allocations: 4 kB / 358.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.1213, allocations: 39.91 kB / 358.9 MB, free: 3.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1213, allocations: 4 kB / 358.9 MB, free: 3.258 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.1213, allocations: 4 kB / 358.9 MB, free: 3.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.1213, allocations: 4 kB / 358.9 MB, free: 3.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.1213, allocations: 0 / 358.9 MB, free: 3.25 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000527/0.1219, allocations: 308.5 kB / 359.2 MB, free: 2.926 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.74e-05/0.122, allocations: 120.8 kB / 359.4 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.122, allocations: 11.95 kB / 359.4 MB, free: 2.777 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.1222, allocations: 11.98 kB / 359.4 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.062e-05/0.1222, allocations: 8 kB / 359.4 MB, free: 2.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.1222, allocations: 4 kB / 359.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.1224, allocations: 148.3 kB / 359.5 MB, free: 2.609 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1224, allocations: 0 / 359.5 MB, free: 2.609 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.1227, allocations: 32 kB / 359.6 MB, free: 2.578 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * 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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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.000976/0.1237, allocations: 1.013 MB / 360.6 MB, free: 1.535 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003315/0.124, allocations: 144.9 kB / 360.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1241, allocations: 4.062 kB / 360.7 MB, free: 1.391 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.059e-05/0.1241, allocations: 11.98 kB / 360.7 MB, free: 1.379 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000519/0.1246, allocations: 145.8 kB / 360.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.1276, allocations: 3.736 MB / 364.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.128, allocations: 0.7442 MB / 365.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.312e-05/0.128, allocations: 25.53 kB / 365.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.51e-05/0.1281, allocations: 46.42 kB / 365.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1281, allocations: 0 / 365.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01494/0.1431, allocations: 3.788 MB / 369.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.1433, allocations: 207.3 kB / 369.4 MB, free: 8.672 MB / 302.1 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.c:7: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_functions.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_functions.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_functions.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_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))) ^~ = 5 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_records.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_records.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_records.c:4: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_01exo.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_01exo.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_01exo.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_02nls.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_02nls.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_02nls.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_03lsy.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_03lsy.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_03lsy.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_04set.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_04set.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_04set.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_05evt.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_05evt.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_05evt.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_06inz.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_06inz.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_06inz.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_07dly.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_07dly.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_07dly.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_08bnd.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_08bnd.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_08bnd.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_09alg.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_09alg.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_09alg.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_10asr.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_10asr.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_10asr.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_11mix.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_11mix.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_11mix.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_12jac.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_12jac.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_12jac.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_13opt.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_13opt.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_13opt.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_14lnz.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_14lnz.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_14lnz.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_15syn.o Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_15syn.c In file included from Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_15syn.c:2: In file included from ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_15syn.c:100:151: error: passing 'modelica_integer' (aka 'long') to parameter of incompatible type 'integer_array' (aka 'struct base_array_s') data->localData[0]->realVars[4] /* sample1.noise.noise variable */ = omc_Modelica_Clocked_RealSignals_Sampler_Utilities_Internal_random(threadData, data->localData[0]->integerVars[0] /* previous(sample1.noise.seedState[1]) variable */ ,&tmp0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_functions.h:16:122: note: passing argument to parameter '_seedIn' here modelica_real omc_Modelica_Clocked_RealSignals_Sampler_Utilities_Internal_random(threadData_t *threadData, integer_array _seedIn, integer_array *out_seedOut); ^ 2 warnings and 1 error generated. make: *** [: Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_15syn.o] Error 1