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.001476/0.001476, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 87.56 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005142/0.0005142, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3374, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.4676, allocations: 78.25 MB / 452.9 MB, free: 2.402 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.468, allocations: 71.95 kB / 453 MB, free: 2.332 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03622/0.5042, allocations: 7.557 MB / 460.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5043, allocations: 0 / 460.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.5043, allocations: 4 kB / 460.5 MB, free: 10.75 MB / 346.7 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.001212/0.5055, allocations: 0.526 MB / 461 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.5056, allocations: 11.97 kB / 461.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.392e-05/0.5057, allocations: 50.45 kB / 461.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003196/0.506, allocations: 35.78 kB / 461.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.5063, allocations: 204.2 kB / 461.3 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.305e-05/0.5064, allocations: 7.953 kB / 461.3 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.5064, allocations: 8 kB / 461.4 MB, free: 9.812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000424/0.5068, allocations: 142.5 kB / 461.5 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.5069, allocations: 0 / 461.5 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.5069, allocations: 0 / 461.5 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.5069, allocations: 0 / 461.5 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.5073, allocations: 71.95 kB / 461.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.5085, allocations: 0.5788 MB / 462.1 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006332/0.5091, allocations: 168 kB / 462.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.5092, allocations: 0 / 462.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004406/0.5096, allocations: 158.9 kB / 462.5 MB, free: 8.586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.884e-06/0.5096, allocations: 4 kB / 462.5 MB, free: 8.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.001144/0.5108, allocations: 415.5 kB / 462.9 MB, free: 8.133 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.5109, allocations: 131 kB / 463 MB, free: 7.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.5112, allocations: 182.2 kB / 463.2 MB, free: 7.797 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.816e-05/0.5113, allocations: 45.69 kB / 463.2 MB, free: 7.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.5115, allocations: 174.9 kB / 463.4 MB, free: 7.574 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.5116, allocations: 43.48 kB / 463.4 MB, free: 7.531 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.591e-05/0.5116, allocations: 4 kB / 463.4 MB, free: 7.527 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5118, allocations: 322.8 kB / 463.8 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.5121, allocations: 99.95 kB / 463.8 MB, free: 7.105 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004036/0.5126, allocations: 137.6 kB / 464 MB, free: 6.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003943/0.513, allocations: 113 kB / 464.1 MB, free: 6.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.513, allocations: 0 / 464.1 MB, free: 6.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009557/0.514, allocations: 294.1 kB / 464.4 MB, free: 6.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.514, allocations: 8 kB / 464.4 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.514, allocations: 0 / 464.4 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.5141, allocations: 8.094 kB / 464.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.5143, allocations: 35.91 kB / 464.4 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.5144, allocations: 4 kB / 464.4 MB, free: 6.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.5145, allocations: 23.78 kB / 464.5 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.5146, allocations: 11.95 kB / 464.5 MB, free: 6.469 MB / 346.7 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.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,$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,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked 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.0002459/0.5149, allocations: 153.9 kB / 464.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.676e-05/0.5149, allocations: 19.73 kB / 464.6 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.013e-05/0.515, allocations: 13.41 kB / 464.7 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.515, allocations: 4 kB / 464.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.515, allocations: 0 / 464.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.515, allocations: 0 / 464.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000317/0.5154, allocations: 225.4 kB / 464.9 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5154, allocations: 3.938 kB / 464.9 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.5155, allocations: 15.98 kB / 464.9 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.5155, allocations: 0 / 464.9 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.5156, allocations: 12 kB / 464.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5156, allocations: 0 / 464.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.5156, allocations: 0 / 464.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007426/0.5163, allocations: 279.6 kB / 465.2 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.318e-05/0.5164, allocations: 92.86 kB / 465.3 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.355e-05/0.5165, allocations: 15.98 kB / 465.3 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.5166, allocations: 11.98 kB / 465.3 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.5167, allocations: 15.94 kB / 465.3 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.5168, allocations: 15.98 kB / 465.3 MB, free: 5.484 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000185/0.517, allocations: 133.2 kB / 465.5 MB, free: 5.355 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.517, allocations: 0 / 465.5 MB, free: 5.355 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008702/0.5179, allocations: 163.6 kB / 465.6 MB, free: 5.195 MB / 346.7 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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * 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.002862/0.5208, allocations: 1.295 MB / 466.9 MB, free: 3.887 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008699/0.5217, allocations: 260 kB / 467.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.5217, allocations: 4 kB / 467.2 MB, free: 3.617 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.522, allocations: 68.22 kB / 467.2 MB, free: 3.551 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.5222, allocations: 14.62 kB / 467.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.5239, allocations: 1.111 MB / 468.4 MB, free: 2.352 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.5244, allocations: 0.724 MB / 469.1 MB, free: 1.602 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.5245, allocations: 47.41 kB / 469.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5245, allocations: 0 / 469.1 MB, free: 1.559 MB / 346.7 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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/OMCompiler/build/bin/../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