Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0004218/0.0004218, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0003906/0.0003906, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.3453/0.3453, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.03502/0.03502, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.406e-06/3.406e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.541e-05/1.881e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise): time 0.02114/0.02116, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.01548/0.03664, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.004014/0.04065, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.003565/0.04422, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.003855/0.04807, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.006606/0.05468, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.007802/0.06248, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.007955/0.07044, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.005866/0.0763, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.003443/0.07975, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.001086/0.08083, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0008962/0.08173, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.001742/0.08347, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.002935/0.0864, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.01274/0.09915, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0005714/0.09972, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 1.033e-05/0.09973, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 6.943e-05/0.0998, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 946 * Number of variables: 946 Notification: Performance of Generate backend data structure: time 0.02148/0.1213, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.00021/0.1215, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004326/0.1258, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004552/0.1304, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/0.1436, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000648/0.1443, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.001813/0.1461, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.02449/0.1706, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 0.0002624/0.1708, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001354/0.1722, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002421/0.1724, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01621/0.1886, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0571/0.2457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.007938/0.2537, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.003506/0.2572, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 7.688e-05/0.2573, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004507/0.2618, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=135): time 0.0003138/0.2621, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=135): time 0.01313/0.2752, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/0.2754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008529/0.2839, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0009375/0.2848, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.003314/0.2881, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.001166/0.2893, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.002859/0.2922, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0002472/0.2924, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.00466/0.2971, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.005326/0.3024, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.02285/0.3253, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.945e-05/0.3253, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=235) (initialization): time 0.01398/0.3393, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 9.069e-05/0.3394, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.835e-05/0.3394, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 9.224e-05/0.3395, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003735/0.3433, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.764e-05/0.3434, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002015/0.3454, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005919/0.346, allocations: 0 / 0, free: 0 / 0 Warning: Assuming fixed start value for the following 1 variables: NoiseNormal1.y:DISCRETE(flow=false fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$PRE.NoiseNormal1.y,NoiseNormal1.y,Retail1.Mail_Delay.Level3.Integrator1.local_reset,Retail1.Mail_Delay.Level2.Integrator1.local_reset,Retail1.Mail_Delay.Level1.Integrator1.local_reset,Retail1.Order_Delay.Level3.Integrator1.local_reset,Retail1.Order_Delay.Level2.Integrator1.local_reset,Retail1.Order_Delay.Level1.Integrator1.local_reset,Retail1.Transporation_Delay.Level3.Integrator1.local_reset,Retail1.Transporation_Delay.Level2.Integrator1.local_reset,Retail1.Transporation_Delay.Level1.Integrator1.local_reset,Retail1.RSR_delayed.Level1.Integrator1.local_reset,Retail1.UOR.Integrator1.local_reset,Retail1.IAR.Integrator1.local_reset,Distribution1.Mail_Delay.Level3.Integrator1.local_reset,Distribution1.Mail_Delay.Level2.Integrator1.local_reset,Distribution1.Mail_Delay.Level1.Integrator1.local_reset,Distribution1.Order_Delay.Level3.Integrator1.local_reset,Distribution1.Order_Delay.Level2.Integrator1.local_reset,Distribution1.Order_Delay.Level1.Integrator1.local_reset,Distribution1.Transporation_Delay.Level3.Integrator1.local_reset,Distribution1.Transporation_Delay.Level2.Integrator1.local_reset,Distribution1.Transporation_Delay.Level1.Integrator1.local_reset,Distribution1.RSD_delayed.Level1.Integrator1.local_reset,Distribution1.UOD.Integrator1.local_reset,Distribution1.IAD.Integrator1.local_reset,Factory1.Production_Delay.Level3.Integrator1.local_reset,Factory1.Production_Delay.Level2.Integrator1.local_reset,Factory1.Production_Delay.Level1.Integrator1.local_reset,Factory1.Order_Delay.Level3.Integrator1.local_reset,Factory1.Order_Delay.Level2.Integrator1.local_reset,Factory1.Order_Delay.Level1.Integrator1.local_reset,Factory1.SRF_delayed.Level1.Integrator1.local_reset,Factory1.UOF.Integrator1.local_reset,Factory1.IAF.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 235 * 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.005082/0.3511, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001488/0.3525, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.3543, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/0.3543, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/0.3543, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-05/0.3544, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02479/0.3792, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/0.3792, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003301/0.3825, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 2.993e-05/0.3825, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006462/0.3832, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.466e-05/0.3832, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3832, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/0.398, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.001774/0.3998, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/0.4009, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.4024, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001688/0.4041, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004204/0.4045, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.005066/0.4095, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 8.283e-05/0.4096, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.005245/0.4149, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 33 (Factory1.IAF.Integrator1.y,Factory1.UOF.Integrator1.y,Factory1.SRF_delayed.Level1.Integrator1.y,Factory1.Order_Delay.Level1.Integrator1.y,Factory1.Order_Delay.Level2.Integrator1.y,Factory1.Order_Delay.Level3.Integrator1.y,Factory1.Production_Delay.Level1.Integrator1.y,Factory1.Production_Delay.Level2.Integrator1.y,Factory1.Production_Delay.Level3.Integrator1.y,Distribution1.IAD.Integrator1.y,Distribution1.UOD.Integrator1.y,Distribution1.RSD_delayed.Level1.Integrator1.y,Distribution1.Transporation_Delay.Level1.Integrator1.y,Distribution1.Transporation_Delay.Level2.Integrator1.y,Distribution1.Transporation_Delay.Level3.Integrator1.y,Distribution1.Order_Delay.Level1.Integrator1.y,Distribution1.Order_Delay.Level2.Integrator1.y,Distribution1.Order_Delay.Level3.Integrator1.y,Distribution1.Mail_Delay.Level1.Integrator1.y,Distribution1.Mail_Delay.Level2.Integrator1.y,Distribution1.Mail_Delay.Level3.Integrator1.y,Retail1.IAR.Integrator1.y,Retail1.UOR.Integrator1.y,Retail1.RSR_delayed.Level1.Integrator1.y,Retail1.Transporation_Delay.Level1.Integrator1.y,Retail1.Transporation_Delay.Level2.Integrator1.y,Retail1.Transporation_Delay.Level3.Integrator1.y,Retail1.Order_Delay.Level1.Integrator1.y,Retail1.Order_Delay.Level2.Integrator1.y,Retail1.Order_Delay.Level3.Integrator1.y,Retail1.Mail_Delay.Level1.Integrator1.y,Retail1.Mail_Delay.Level2.Integrator1.y,Retail1.Mail_Delay.Level3.Integrator1.y) * Number of discrete variables: 2 ($whenCondition1,NoiseNormal1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.01584/0.4307, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.008474/0.4392, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4392, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.003858/0.443, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006033/0.4491, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09528/0.5444, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005014/0.5494, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.00241/0.5518, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008682/0.5605, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.001027/0.5615, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.04281/0.6043, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.0654/0.6697, allocations: 0 / 0, free: 0 / 0 [openmodelica_codegen_wasm_jit/src/CodegenWasmJit.rs:2534:9-2534:9:writable] Error: Internal error CodegenWasmJit: `external \"C\"` ext_initRandomNormal, ext_RandomNormal has no wasm implementation and no platform library this omc can ship either: `ext_initRandomNormal` is in none of the model's libraries — the model declares no `Library` annotation that resolves to one. Name a wasm module built with `clang --target=wasm32-wasip1 -fPIC -shared`, or, for a native run, the platform shared library the C target would link. the `Include` C sources did not compile for the wasm target: clang --target=wasm32-wasip1 -O1 -fPIC -shared -nodefaultlibs --sysroot=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/wasm32-wasi/omc -Wl,--export-all -Wl,--allow-undefined -DOM_HAVE_PTHREADS -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc \"-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include\" -o /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.wasm /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.c /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/wasm32-wasi/omc/lib/wasm32-wasip1/libclang_rt.builtins-wasm32.a In file included from /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.c:1: /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:14:28: error: call to undeclared function 'rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | v1 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:14:47: error: use of undeclared identifier 'RAND_MAX' 14 | v1 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:15:47: error: use of undeclared identifier 'RAND_MAX' 15 | v2 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^~~~~~~~ In file included from /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.c:2: /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:5: error: call to undeclared function 'srand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6 | srand(time(NULL)); | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:11: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6 | srand(time(NULL)); | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:16: error: use of undeclared identifier 'NULL' 6 | srand(time(NULL)); | ^~~~ 6 errors generated. the `Include` C sources did not compile for the wasm target: clang --target=wasm32-wasip1 -O1 -fPIC -shared -nodefaultlibs --sysroot=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/wasm32-wasi/omc -Wl,--export-all -Wl,--allow-undefined -DOM_HAVE_PTHREADS -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc \"-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include\" -o /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.wasm /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.c /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/wasm32-wasi/omc/lib/wasm32-wasip1/libclang_rt.builtins-wasm32.a In file included from /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.c:1: /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:14:28: error: call to undeclared function 'rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | v1 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:14:47: error: use of undeclared identifier 'RAND_MAX' 14 | v1 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:15:47: error: use of undeclared identifier 'RAND_MAX' 15 | v2 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^~~~~~~~ In file included from /tmp/om-wasm-include-498877-SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes.c:2: /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:5: error: call to undeclared function 'srand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6 | srand(time(NULL)); | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:11: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6 | srand(time(NULL)); | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:16: error: use of undeclared identifier 'NULL' 6 | srand(time(NULL)); | ^~~~ 6 errors generated. the `Include` C sources did not compile: clang -shared -fPIC -O1 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c -I /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc \"-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include\" -o /tmp/om-extc-498877/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes_exports.so /tmp/om-extc-498877/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes_exports.c In file included from /tmp/om-extc-498877/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes_exports.c:1: /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:14:28: error: call to undeclared function 'rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | v1 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:14:47: error: use of undeclared identifier 'RAND_MAX' 14 | v1 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_RandomNormal.c:15:47: error: use of undeclared identifier 'RAND_MAX' 15 | v2 = 2 * ((double) rand()) /((double) RAND_MAX) - 1; | ^~~~~~~~ In file included from /tmp/om-extc-498877/SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_includes_exports.c:2: /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:5: error: call to undeclared function 'srand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6 | srand(time(NULL)); | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:11: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6 | srand(time(NULL)); | ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/Resources/Include/ext_initRandomNormal.c:6:16: error: use of undeclared identifier 'NULL' 6 | srand(time(NULL)); | ^~~~ 6 errors generated. " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 1.848719673929736]