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.002341/0.002341, allocations: 181.1 kB / 13.66 MB, free: 1.664 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.237/2.237, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001077/0.001077, allocations: 94.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.201e-05/4.218e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.5237, allocations: 76.05 MB / 445.2 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5241, allocations: 68.09 kB / 445.3 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01832/0.5424, allocations: 4.125 MB / 449.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5425, allocations: 0 / 449.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.5425, allocations: 4 kB / 449.4 MB, free: 13.12 MB / 330.7 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.0008019/0.5433, allocations: 433.8 kB / 449.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.5434, allocations: 8.031 kB / 449.9 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.289e-05/0.5435, allocations: 41.88 kB / 449.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004302/0.5439, allocations: 43.78 kB / 449.9 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.5442, allocations: 198.3 kB / 450.1 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.5442, allocations: 7.953 kB / 450.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.268e-05/0.5443, allocations: 7.5 kB / 450.2 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.5445, allocations: 107 kB / 450.3 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.5446, allocations: 0 / 450.3 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.5446, allocations: 4 kB / 450.3 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.5446, allocations: 0 / 450.3 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001367/0.5448, allocations: 41.3 kB / 450.3 MB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009643/0.5457, allocations: 481.6 kB / 450.8 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.546, allocations: 97.34 kB / 450.9 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.5462, allocations: 49.44 kB / 450.9 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.5462, allocations: 0 / 450.9 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.5465, allocations: 136.8 kB / 451 MB, free: 11.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.913e-06/0.5465, allocations: 0 / 451 MB, free: 11.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004948/0.547, allocations: 170.2 kB / 451.2 MB, free: 11.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/0.5471, allocations: 92.59 kB / 451.3 MB, free: 11.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.5474, allocations: 161.8 kB / 451.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.877e-05/0.5474, allocations: 44.62 kB / 451.5 MB, free: 11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.5476, allocations: 172.9 kB / 451.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.223e-05/0.5477, allocations: 46.81 kB / 451.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.936e-05/0.5477, allocations: 3.938 kB / 451.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.5479, allocations: 326.7 kB / 452 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.5481, allocations: 83.25 kB / 452.1 MB, free: 10.42 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.5484, allocations: 104.1 kB / 452.2 MB, free: 10.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.5487, allocations: 90.44 kB / 452.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5487, allocations: 4 kB / 452.3 MB, free: 10.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00065/0.5493, allocations: 246.1 kB / 452.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.5494, allocations: 4 kB / 452.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-05/0.5494, allocations: 4 kB / 452.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.5494, allocations: 0 / 452.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.5497, allocations: 34.17 kB / 452.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.5497, allocations: 7.984 kB / 452.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.5499, allocations: 23.34 kB / 452.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/0.55, allocations: 11.44 kB / 452.6 MB, free: 10.01 MB / 330.7 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.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,$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,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.0001801/0.5502, allocations: 139.9 kB / 452.8 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.5502, allocations: 11.81 kB / 452.8 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.901e-05/0.5503, allocations: 12.72 kB / 452.8 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.5503, allocations: 4 kB / 452.8 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5503, allocations: 0 / 452.8 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.5503, allocations: 3.984 kB / 452.8 MB, free: 9.848 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.5506, allocations: 222.6 kB / 453 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.5506, allocations: 0 / 453 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-05/0.5507, allocations: 11.98 kB / 453 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.5508, allocations: 0 / 453 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.5508, allocations: 4 kB / 453 MB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.5508, allocations: 3.984 kB / 453 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5508, allocations: 0 / 453 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004526/0.5513, allocations: 222.8 kB / 453.3 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-05/0.5514, allocations: 96.5 kB / 453.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/0.5514, allocations: 4 kB / 453.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.5515, allocations: 15.67 kB / 453.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.005e-05/0.5516, allocations: 11.98 kB / 453.4 MB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.5517, allocations: 4 kB / 453.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001729/0.5519, allocations: 130.9 kB / 453.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5519, allocations: 0 / 453.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004721/0.5524, allocations: 63.19 kB / 453.6 MB, free: 9.059 MB / 330.7 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,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.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.001576/0.5539, allocations: 0.9984 MB / 454.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005501/0.5545, allocations: 223.8 kB / 454.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5545, allocations: 0 / 454.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.5547, allocations: 61.91 kB / 454.9 MB, free: 7.867 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/0.5549, allocations: 3.688 kB / 454.9 MB, free: 7.867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008515/0.5558, allocations: 272 kB / 455.1 MB, free: 7.578 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.5562, allocations: 0.7157 MB / 455.8 MB, free: 6.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.5563, allocations: 44.28 kB / 455.9 MB, free: 6.816 MB / 330.7 MB Notification: Performance of SimCode: time 1.643e-06/0.5563, allocations: 0 / 455.9 MB, free: 6.816 MB / 330.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_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/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_UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_UniformNoiseCalcHelperMain.o] Error 1