Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.Distributions.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.Distributions,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.Distributions,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions",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.001441/0.001442, allocations: 179.2 kB / 8.363 MB, free: 0.7148 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.126/2.126, 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.001146/0.001145, allocations: 97.95 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.487e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3855, allocations: 47.57 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.5312, allocations: 77.49 MB / 439.9 MB, free: 8.723 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.5316, allocations: 72.72 kB / 440 MB, free: 8.652 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03608/0.5677, allocations: 7.463 MB / 447.5 MB, free: 1.219 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5677, allocations: 0 / 447.5 MB, free: 1.219 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.5678, allocations: 4.656 kB / 447.5 MB, free: 1.215 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001133/0.5689, allocations: 0.5089 MB / 448 MB, free: 0.6641 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/0.569, allocations: 8.031 kB / 448 MB, free: 0.6562 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.5693, allocations: 31.98 kB / 448 MB, free: 0.625 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.5696, allocations: 196 kB / 448.2 MB, free: 400 kB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.5697, allocations: 3.953 kB / 448.2 MB, free: 396 kB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.326e-05/0.5697, allocations: 11.98 kB / 448.2 MB, free: 384 kB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001492/0.5699, allocations: 41.69 kB / 448.3 MB, free: 344 kB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.5701, allocations: 112.1 kB / 448.4 MB, free: 216 kB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.5702, allocations: 3.5 kB / 448.4 MB, free: 216 kB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.5702, allocations: 0 / 448.4 MB, free: 216 kB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.527e-06/0.5702, allocations: 4 kB / 448.4 MB, free: 212 kB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.5713, allocations: 0.5326 MB / 448.9 MB, free: 15.63 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.5716, allocations: 123.8 kB / 449 MB, free: 15.48 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.5718, allocations: 46.64 kB / 449.1 MB, free: 15.43 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.5718, allocations: 3.938 kB / 449.1 MB, free: 15.42 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003036/0.5721, allocations: 140.6 kB / 449.2 MB, free: 15.27 MB / 347.1 MB Notification: Performance of pre-optimization done (n=17): time 2.244e-06/0.5721, allocations: 4 kB / 449.2 MB, free: 15.26 MB / 347.1 MB Notification: Performance of matching and sorting (n=17): time 0.001017/0.5731, allocations: 201.7 kB / 449.4 MB, free: 15.06 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.5733, allocations: 118.8 kB / 449.5 MB, free: 14.92 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.5735, allocations: 170.2 kB / 449.7 MB, free: 14.75 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/0.5736, allocations: 41.69 kB / 449.7 MB, free: 14.7 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.5737, allocations: 178.9 kB / 449.9 MB, free: 14.52 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.662e-05/0.5738, allocations: 48.55 kB / 450 MB, free: 14.47 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.77e-05/0.5738, allocations: 0 / 450 MB, free: 14.47 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.574, allocations: 322.8 kB / 450.3 MB, free: 14.15 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.5742, allocations: 75.92 kB / 450.3 MB, free: 14.07 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.5745, allocations: 105.8 kB / 450.5 MB, free: 13.96 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008882/0.5754, allocations: 127.9 kB / 450.6 MB, free: 13.84 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.5754, allocations: 3.953 kB / 450.6 MB, free: 13.83 MB / 347.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001197/0.5766, allocations: 281.3 kB / 450.9 MB, free: 13.55 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.5766, allocations: 7.984 kB / 450.9 MB, free: 13.54 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/0.5767, allocations: 4 kB / 450.9 MB, free: 13.54 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.5767, allocations: 0 / 450.9 MB, free: 13.54 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.577, allocations: 37.33 kB / 450.9 MB, free: 13.5 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.577, allocations: 0.8594 kB / 450.9 MB, free: 13.5 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.5772, allocations: 23.73 kB / 450.9 MB, free: 13.48 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.056e-05/0.5773, allocations: 12 kB / 450.9 MB, free: 13.47 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * 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.0001808/0.5775, allocations: 130.2 kB / 451.1 MB, free: 13.33 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009298/0.5784, allocations: 218.9 kB / 451.3 MB, free: 13.11 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.5785, allocations: 15.81 kB / 451.3 MB, free: 13.1 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.874e-05/0.5785, allocations: 13.84 kB / 451.3 MB, free: 13.09 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.5785, allocations: 0 / 451.3 MB, free: 13.09 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.5786, allocations: 0 / 451.3 MB, free: 13.09 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.5786, allocations: 4 kB / 451.3 MB, free: 13.08 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.5789, allocations: 198 kB / 451.5 MB, free: 12.85 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.5789, allocations: 7.922 kB / 451.5 MB, free: 12.84 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.579, allocations: 12 kB / 451.5 MB, free: 12.83 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-06/0.579, allocations: 6.094 kB / 451.5 MB, free: 12.83 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.5791, allocations: 7.984 kB / 451.5 MB, free: 12.82 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.5791, allocations: 0 / 451.5 MB, free: 12.82 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.5791, allocations: 0 / 451.5 MB, free: 12.82 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009039/0.58, allocations: 270.7 kB / 451.8 MB, free: 12.52 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.545e-05/0.5801, allocations: 96.91 kB / 451.9 MB, free: 12.41 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.918e-05/0.5802, allocations: 8 kB / 451.9 MB, free: 12.4 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.5803, allocations: 7.984 kB / 451.9 MB, free: 12.39 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.368e-05/0.5804, allocations: 19.97 kB / 451.9 MB, free: 12.37 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.5804, allocations: 4 kB / 451.9 MB, free: 12.37 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001556/0.5806, allocations: 128.1 kB / 452.1 MB, free: 12.24 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5806, allocations: 4 kB / 452.1 MB, free: 12.24 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007988/0.5814, allocations: 155.7 kB / 452.2 MB, free: 12.09 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * 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.002889/0.5843, allocations: 1.29 MB / 453.5 MB, free: 10.8 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0005464/0.5849, allocations: 211.3 kB / 453.7 MB, free: 10.58 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.5849, allocations: 0 / 453.7 MB, free: 10.58 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.5851, allocations: 64.2 kB / 453.8 MB, free: 10.52 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.5853, allocations: 8.141 kB / 453.8 MB, free: 10.5 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.5865, allocations: 350.2 kB / 454.1 MB, free: 10.11 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.5868, allocations: 0.7226 MB / 454.9 MB, free: 9.359 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.587, allocations: 51.47 kB / 454.9 MB, free: 9.309 MB / 347.1 MB Notification: Performance of SimCode: time 1.092e-06/0.587, allocations: 0.75 kB / 454.9 MB, free: 9.309 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_DistributionsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsInitialize.cpp:256:3: error: use of undeclared identifier '$PRE_P_truncatedNormalNoise_P_state_'; did you mean '_truncatedNormalNoise_P_state_'? $PRE_P_truncatedNormalNoise_P_state_.assign(tmp82); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _truncatedNormalNoise_P_state_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions.h:198:33: note: '_truncatedNormalNoise_P_state_' declared here StatArrayDim1 _truncatedNormalNoise_P_state_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsInitialize.cpp:384:3: error: use of undeclared identifier '$PRE_P_uniformNoise_P_state_'; did you mean '_uniformNoise_P_state_'? $PRE_P_uniformNoise_P_state_.assign(tmp87); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise_P_state_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_Distributions.h:199:33: note: '_uniformNoise_P_state_' declared here StatArrayDim1 _uniformNoise_P_state_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsFMU.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_DistributionsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_DistributionsCalcHelperMain.o] Error 1