Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.UniformNoise,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.UniformNoise,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001504/0.001505, allocations: 180.1 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.127/2.127, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 91.09 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.548e-05/3.55e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3882, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.5107, allocations: 75.39 MB / 437.8 MB, free: 10.82 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.5111, allocations: 69.22 kB / 437.9 MB, free: 10.76 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01825/0.5294, allocations: 4.103 MB / 442 MB, free: 6.672 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5294, allocations: 0 / 442 MB, free: 6.672 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.5295, allocations: 8.062 kB / 442 MB, free: 6.668 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000828/0.5303, allocations: 429.8 kB / 442.4 MB, free: 6.207 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.5304, allocations: 12.03 kB / 442.4 MB, free: 6.195 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004197/0.5308, allocations: 44.62 kB / 442.5 MB, free: 6.152 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.531, allocations: 190.8 kB / 442.7 MB, free: 5.926 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.5311, allocations: 0 / 442.7 MB, free: 5.926 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.5311, allocations: 9.672 kB / 442.7 MB, free: 5.918 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001466/0.5313, allocations: 39.98 kB / 442.7 MB, free: 5.879 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.5315, allocations: 102.3 kB / 442.8 MB, free: 5.77 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.5316, allocations: 0 / 442.8 MB, free: 5.77 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.5316, allocations: 0 / 442.8 MB, free: 5.77 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.5316, allocations: 1.5 kB / 442.8 MB, free: 5.77 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008995/0.5325, allocations: 360.2 kB / 443.2 MB, free: 5.379 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.5328, allocations: 103.3 kB / 443.3 MB, free: 5.262 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.5329, allocations: 54.11 kB / 443.3 MB, free: 5.203 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.533, allocations: 0 / 443.3 MB, free: 5.203 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002979/0.5333, allocations: 131.3 kB / 443.4 MB, free: 5.059 MB / 331.1 MB Notification: Performance of pre-optimization done (n=16): time 1.913e-06/0.5333, allocations: 4 kB / 443.4 MB, free: 5.055 MB / 331.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005426/0.5338, allocations: 165.4 kB / 443.6 MB, free: 4.887 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.861e-05/0.5339, allocations: 89.11 kB / 443.7 MB, free: 4.781 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.5342, allocations: 157.9 kB / 443.8 MB, free: 4.621 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 7.586e-05/0.5343, allocations: 41.69 kB / 443.9 MB, free: 4.574 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.5344, allocations: 171 kB / 444.1 MB, free: 4.402 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.5345, allocations: 31.61 kB / 444.1 MB, free: 4.371 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.711e-05/0.5345, allocations: 0 / 444.1 MB, free: 4.371 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.5346, allocations: 326.8 kB / 444.4 MB, free: 4.043 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.5349, allocations: 76.5 kB / 444.5 MB, free: 3.961 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002371/0.5351, allocations: 101.6 kB / 444.6 MB, free: 3.855 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/0.5355, allocations: 91.94 kB / 444.7 MB, free: 3.766 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.5356, allocations: 0 / 444.7 MB, free: 3.766 MB / 331.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007294/0.5363, allocations: 249.3 kB / 444.9 MB, free: 3.516 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.5363, allocations: 4 kB / 444.9 MB, free: 3.512 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/0.5364, allocations: 8.062 kB / 444.9 MB, free: 3.504 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.5364, allocations: 0 / 444.9 MB, free: 3.504 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.5367, allocations: 31.86 kB / 445 MB, free: 3.473 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.5367, allocations: 4 kB / 445 MB, free: 3.469 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.5368, allocations: 12.95 kB / 445 MB, free: 3.457 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.694e-05/0.5369, allocations: 16 kB / 445 MB, free: 3.441 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0001673/0.5371, allocations: 132 kB / 445.1 MB, free: 3.305 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000404/0.5375, allocations: 169.3 kB / 445.3 MB, free: 3.133 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.5375, allocations: 11.91 kB / 445.3 MB, free: 3.121 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.271e-05/0.5376, allocations: 9.844 kB / 445.3 MB, free: 3.113 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.5376, allocations: 4 kB / 445.3 MB, free: 3.109 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.5376, allocations: 0 / 445.3 MB, free: 3.109 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5377, allocations: 3.984 kB / 445.3 MB, free: 3.105 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.5379, allocations: 188.1 kB / 445.5 MB, free: 2.887 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.5379, allocations: 3.953 kB / 445.5 MB, free: 2.883 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.4e-05/0.538, allocations: 15.98 kB / 445.5 MB, free: 2.867 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.5381, allocations: 0 / 445.5 MB, free: 2.867 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.5381, allocations: 4 kB / 445.5 MB, free: 2.863 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.5381, allocations: 0 / 445.5 MB, free: 2.863 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5381, allocations: 0.5625 kB / 445.5 MB, free: 2.863 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.5385, allocations: 218.1 kB / 445.7 MB, free: 2.625 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.59e-05/0.5386, allocations: 93.11 kB / 445.8 MB, free: 2.516 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.012e-05/0.5387, allocations: 15.98 kB / 445.8 MB, free: 2.5 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.5388, allocations: 7.938 kB / 445.8 MB, free: 2.492 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-05/0.5389, allocations: 11.97 kB / 445.9 MB, free: 2.48 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.5389, allocations: 14.52 kB / 445.9 MB, free: 2.469 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.5391, allocations: 117 kB / 446 MB, free: 2.355 MB / 331.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5391, allocations: 0 / 446 MB, free: 2.355 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004739/0.5396, allocations: 63.86 kB / 446 MB, free: 2.293 MB / 331.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: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001401/0.541, allocations: 0.9876 MB / 447 MB, free: 1.305 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.5415, allocations: 211.3 kB / 447.2 MB, free: 1.086 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5415, allocations: 4.125 kB / 447.2 MB, free: 1.082 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.5417, allocations: 47.98 kB / 447.3 MB, free: 1.035 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.5419, allocations: 10.28 kB / 447.3 MB, free: 1.027 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008015/0.5427, allocations: 266.1 kB / 447.6 MB, free: 0.7227 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.5431, allocations: 0.7119 MB / 448.3 MB, free: 15.98 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.5432, allocations: 43.42 kB / 448.3 MB, free: 15.94 MB / 347.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5432, allocations: 0 / 448.3 MB, free: 15.94 MB / 347.1 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseInitialize.cpp:255:3: error: use of undeclared identifier '$PRE_P_uniformNoise2_P_state_'; did you mean '_uniformNoise2_P_state_'? $PRE_P_uniformNoise2_P_state_.assign(tmp41); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise2_P_state_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:198:33: note: '_uniformNoise2_P_state_' declared here StatArrayDim1 _uniformNoise2_P_state_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseInitialize.cpp:381:3: error: use of undeclared identifier '$PRE_P_uniformNoise1_P_state_'; did you mean '_uniformNoise1_P_state_'? $PRE_P_uniformNoise1_P_state_.assign(tmp45); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise1_P_state_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoise.h:197:33: note: '_uniformNoise1_P_state_' declared here StatArrayDim1 _uniformNoise1_P_state_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o] Error 1