Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo", uses=false) Using package Modelica_Noise with version 1.0 Beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Noise.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Noise.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00603/0.00603, allocations: 164.8 kB / 15.11 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.369/1.369, allocations: 170.8 MB / 186.6 MB, free: 1.117 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001603/0.001603, allocations: 110.5 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo): time 0.01862/0.01862, allocations: 3.112 MB / 268.7 MB, free: 15.45 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.0003671, allocations: 8 kB / 318.7 MB, free: 63.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06733/0.06773, allocations: 39.4 MB / 358.1 MB, free: 23.89 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.ImpureGenerator): time 0.001231/0.06901, allocations: 1.05 MB / 359.2 MB, free: 22.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000575/0.06961, allocations: 320.9 kB / 359.5 MB, free: 22.51 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.963e-05/0.06966, allocations: 0 / 359.5 MB, free: 22.51 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.773e-05/0.06969, allocations: 0 / 359.5 MB, free: 22.51 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004494/0.07015, allocations: 67.8 kB / 359.5 MB, free: 22.44 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.818e-05/0.07022, allocations: 11.92 kB / 359.5 MB, free: 22.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.623e-05/0.07027, allocations: 7.984 kB / 359.6 MB, free: 22.42 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.114e-05/0.07033, allocations: 4 kB / 359.6 MB, free: 22.42 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.943e-05/0.07036, allocations: 3.938 kB / 359.6 MB, free: 22.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.299e-05/0.07039, allocations: 15.92 kB / 359.6 MB, free: 22.4 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.866e-06/0.0704, allocations: 4 kB / 359.6 MB, free: 22.39 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.07056, allocations: 59.94 kB / 359.6 MB, free: 22.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.512e-05/0.07059, allocations: 11.92 kB / 359.6 MB, free: 22.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.07062, allocations: 25.7 kB / 359.7 MB, free: 22.29 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.07076, allocations: 59.89 kB / 359.7 MB, free: 22.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.07077, allocations: 0 / 359.7 MB, free: 22.23 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.07077, allocations: 0 / 359.7 MB, free: 22.23 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.07078, allocations: 4 kB / 359.7 MB, free: 22.23 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000305/0.07109, allocations: 343 kB / 360.1 MB, free: 21.85 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.07114, allocations: 16.02 kB / 360.1 MB, free: 21.84 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.998e-05/0.07117, allocations: 30.56 kB / 360.1 MB, free: 21.8 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.859e-05/0.07121, allocations: 7.906 kB / 360.1 MB, free: 21.79 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.582e-05/0.07131, allocations: 171.1 kB / 360.3 MB, free: 21.58 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.07133, allocations: 4 kB / 360.3 MB, free: 21.58 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.07135, allocations: 3.953 kB / 360.3 MB, free: 21.57 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.805e-05/0.07142, allocations: 37.62 kB / 360.3 MB, free: 21.53 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-06/0.07143, allocations: 0 / 360.3 MB, free: 21.53 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.07145, allocations: 4 kB / 360.3 MB, free: 21.53 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.07146, allocations: 0 / 360.3 MB, free: 21.53 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.43e-05/0.07148, allocations: 4 kB / 360.3 MB, free: 21.52 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001097/0.07159, allocations: 153.7 kB / 360.5 MB, free: 21.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.527e-05/0.07164, allocations: 22.58 kB / 360.5 MB, free: 21.29 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.161e-06/0.07165, allocations: 0 / 360.5 MB, free: 21.29 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000119/0.07177, allocations: 51.36 kB / 360.6 MB, free: 21.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.07178, allocations: 0 / 360.6 MB, free: 21.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001518/0.07194, allocations: 53.69 kB / 360.6 MB, free: 21.17 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.07198, allocations: 55.34 kB / 360.7 MB, free: 21.11 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.699e-05/0.07205, allocations: 113.8 kB / 360.8 MB, free: 20.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-06/0.07207, allocations: 25.7 kB / 360.8 MB, free: 20.95 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.274e-05/0.07209, allocations: 80.14 kB / 360.9 MB, free: 20.87 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.406e-05/0.07211, allocations: 11.91 kB / 360.9 MB, free: 20.86 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-06/0.07212, allocations: 0 / 360.9 MB, free: 20.86 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.07218, allocations: 314.8 kB / 361.2 MB, free: 20.54 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-06/0.07219, allocations: 8.062 kB / 361.2 MB, free: 20.54 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.416e-05/0.07221, allocations: 13.72 kB / 361.2 MB, free: 20.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.601e-05/0.07223, allocations: 8 kB / 361.2 MB, free: 20.51 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.07224, allocations: 0 / 361.2 MB, free: 20.51 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.54e-05/0.0723, allocations: 33.7 kB / 361.3 MB, free: 20.47 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.07232, allocations: 15.88 kB / 361.3 MB, free: 20.45 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.07233, allocations: 128 / 361.3 MB, free: 20.45 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.07235, allocations: 8 kB / 361.3 MB, free: 20.45 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.97e-05/0.0724, allocations: 0 / 361.3 MB, free: 20.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.07241, allocations: 0 / 361.3 MB, free: 20.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.77e-05/0.07244, allocations: 4 kB / 361.3 MB, free: 20.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.07245, allocations: 0 / 361.3 MB, free: 20.44 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.276e-05/0.07252, allocations: 109.8 kB / 361.4 MB, free: 20.32 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.317e-06/0.07253, allocations: 7.906 kB / 361.4 MB, free: 20.32 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.94e-05/0.07256, allocations: 11.44 kB / 361.4 MB, free: 20.31 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.07256, allocations: 0 / 361.4 MB, free: 20.31 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.07257, allocations: 7.984 kB / 361.4 MB, free: 20.3 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.07258, allocations: 0 / 361.4 MB, free: 20.3 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001006/0.07269, allocations: 157.7 kB / 361.6 MB, free: 20.1 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.0727, allocations: 0 / 361.6 MB, free: 20.1 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-06/0.07271, allocations: 0 / 361.6 MB, free: 20.1 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.07272, allocations: 0 / 361.6 MB, free: 20.1 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.07273, allocations: 0 / 361.6 MB, free: 20.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.07273, allocations: 4.203 kB / 361.6 MB, free: 20.09 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.07274, allocations: 0 / 361.6 MB, free: 20.09 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.275e-05/0.07283, allocations: 81.06 kB / 361.7 MB, free: 20 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.07286, allocations: 85.09 kB / 361.8 MB, free: 19.89 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.07289, allocations: 3.984 kB / 361.8 MB, free: 19.89 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.444e-05/0.07291, allocations: 0 / 361.8 MB, free: 19.89 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.274e-05/0.07293, allocations: 7.891 kB / 361.8 MB, free: 19.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.07295, allocations: 4 kB / 361.8 MB, free: 19.88 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.226e-05/0.07299, allocations: 83.28 kB / 361.8 MB, free: 19.8 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07299, allocations: 0 / 361.8 MB, free: 19.8 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002504/0.07325, allocations: 28.02 kB / 361.9 MB, free: 19.77 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003775/0.07363, allocations: 0.6537 MB / 362.5 MB, free: 19.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.625e-05/0.07371, allocations: 12 kB / 362.5 MB, free: 19.08 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.07372, allocations: 0 / 362.5 MB, free: 19.08 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.879e-05/0.07375, allocations: 4 kB / 362.5 MB, free: 19.07 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001069/0.07386, allocations: 3.953 kB / 362.5 MB, free: 19.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006013/0.07447, allocations: 0.5215 MB / 363.1 MB, free: 18.5 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.07463, allocations: 0.677 MB / 363.7 MB, free: 17.79 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.044e-05/0.07468, allocations: 7.984 kB / 363.8 MB, free: 17.79 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.07472, allocations: 7.438 kB / 363.8 MB, free: 17.78 MB / 250.7 MB Notification: Performance of SimCode: time 8.51e-07/0.07472, allocations: 0 / 363.8 MB, free: 17.78 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01312/0.08785, allocations: 1.652 MB / 365.4 MB, free: 16.23 MB / 250.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001288/0.08802, allocations: 198.1 kB / 365.6 MB, free: 15.99 MB / 250.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator.c:7: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_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 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -c -o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_functions.o Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_functions.c In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_functions.c:2: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_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); ^ In file included from Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_functions.c:7: In file included from ./Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:128:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Modelica_Noise_Modelica_Noise_Blocks_Examples_NoiseExamples_ImpureGenerator_functions.o] Error 1