Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL",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.001528/0.001528, allocations: 188.9 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.918/1.918, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001198/0.001197, allocations: 93.97 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003976, allocations: 11.98 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3266, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1857/0.5124, allocations: 114.6 MB / 489.2 MB, free: 14.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003413/0.5127, allocations: 91.95 kB / 489.3 MB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6046/1.117, allocations: 85.89 MB / 0.5617 GB, free: 54.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.158e-06/1.117, allocations: 0 / 0.5617 GB, free: 54.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003262/1.118, allocations: 79.86 kB / 0.5618 GB, free: 54.33 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.01231/1.13, allocations: 3.177 MB / 0.5649 GB, free: 51.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/1.13, allocations: 8.031 kB / 0.5649 GB, free: 51.07 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001686/1.132, allocations: 395.9 kB / 0.5653 GB, free: 50.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002778/1.135, allocations: 443.8 kB / 0.5657 GB, free: 50.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006882/1.142, allocations: 1.965 MB / 0.5676 GB, free: 48.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002725/1.142, allocations: 205.4 kB / 0.5678 GB, free: 48.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/1.143, allocations: 271.9 kB / 0.5681 GB, free: 47.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/1.154, allocations: 3.498 MB / 0.5715 GB, free: 44.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001466/1.154, allocations: 11.88 kB / 0.5715 GB, free: 44.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005526/1.155, allocations: 124 kB / 0.5716 GB, free: 43.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/1.155, allocations: 109.3 kB / 0.5717 GB, free: 43.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009643/1.165, allocations: 2.859 MB / 0.5745 GB, free: 40.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02953/1.194, allocations: 11.25 MB / 0.5855 GB, free: 29.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004626/1.199, allocations: 2.338 MB / 0.5878 GB, free: 26.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005502/1.2, allocations: 215.5 kB / 0.588 GB, free: 26.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/1.2, allocations: 47.88 kB / 0.588 GB, free: 26.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 4.268e-06/1.2, allocations: 3.984 kB / 0.588 GB, free: 26.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=157): time 0.03259/1.232, allocations: 8.738 MB / 0.5966 GB, free: 17.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/1.232, allocations: 72.72 kB / 0.5966 GB, free: 17.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0042/1.237, allocations: 1.743 MB / 0.5983 GB, free: 15.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004425/1.237, allocations: 49.7 kB / 0.5984 GB, free: 15.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009786/1.238, allocations: 1.221 MB / 0.5996 GB, free: 14.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00077/1.239, allocations: 0.5314 MB / 0.6001 GB, free: 14.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/1.239, allocations: 40 kB / 0.6001 GB, free: 14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/1.239, allocations: 382.7 kB / 0.6005 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002627/1.242, allocations: 0.9447 MB / 0.6014 GB, free: 12.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003051/1.245, allocations: 1.403 MB / 0.6028 GB, free: 11.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003141/1.248, allocations: 1.15 MB / 0.6039 GB, free: 9.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-05/1.248, allocations: 4 kB / 0.6039 GB, free: 9.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.008894/1.257, allocations: 3.033 MB / 0.6069 GB, free: 6.883 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.998e-05/1.257, allocations: 15.94 kB / 0.6069 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.474e-05/1.257, allocations: 16 kB / 0.6069 GB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00266/1.26, allocations: 0.6269 MB / 0.6075 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00327/1.263, allocations: 439.3 kB / 0.6079 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.276, allocations: 5.936 MB / 0.6137 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003131/1.279, allocations: 135.8 kB / 0.6139 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005081/1.279, allocations: 71.98 kB / 0.6139 GB, free: 15.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002811/1.282, allocations: 0.8564 MB / 0.6148 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008661/1.283, allocations: 213.5 kB / 0.615 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009643/1.293, allocations: 2.858 MB / 0.6178 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.059e-05/1.293, allocations: 16 kB / 0.6178 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/1.293, allocations: 4 kB / 0.6178 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.436e-05/1.293, allocations: 7.969 kB / 0.6178 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01925/1.312, allocations: 5.869 MB / 0.6235 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.78e-05/1.312, allocations: 4 kB / 0.6235 GB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002599/1.315, allocations: 292 kB / 0.6238 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003563/1.318, allocations: 0.6812 MB / 0.6245 GB, free: 4.574 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003833/1.319, allocations: 39.98 kB / 0.6245 GB, free: 4.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01678/1.336, allocations: 7.715 MB / 0.632 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.336, allocations: 0 / 0.632 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/1.349, allocations: 4.256 MB / 0.6362 GB, free: 8.188 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/1.351, allocations: 498.3 kB / 0.6367 GB, free: 7.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000755/1.351, allocations: 31.98 kB / 0.6367 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00269/1.354, allocations: 115.9 kB / 0.6368 GB, free: 7.535 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006909/1.355, allocations: 121.1 kB / 0.6369 GB, free: 7.414 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/1.355, allocations: 51.97 kB / 0.637 GB, free: 7.363 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003842/1.359, allocations: 1.34 MB / 0.6383 GB, free: 6 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.042e-06/1.359, allocations: 0 / 0.6383 GB, free: 6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004005/1.363, allocations: 0.6874 MB / 0.639 GB, free: 5.312 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 27,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2931/1.656, allocations: 5.476 MB / 0.6443 GB, free: 95.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008118/1.664, allocations: 2.805 MB / 0.647 GB, free: 95.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/1.664, allocations: 5.031 kB / 0.647 GB, free: 95.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00513/1.669, allocations: 1.74 MB / 0.6487 GB, free: 95.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/1.673, allocations: 452.2 kB / 0.6492 GB, free: 95.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04961/1.723, allocations: 27.08 MB / 0.6756 GB, free: 80.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003015/1.726, allocations: 2.179 MB / 0.6777 GB, free: 79.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002686/1.729, allocations: 1.071 MB / 0.6788 GB, free: 79.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/1.729, allocations: 3.172 kB / 0.6788 GB, free: 79.29 MB / 410.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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFunctions.cpp:278:38: error: use of undeclared identifier '_omcQ_24tmpVar12_'; did you mean '_omcQ_24tmpVar13_'? _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFunctions.cpp:255:12: note: '_omcQ_24tmpVar13_' declared here double _omcQ_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFunctions.cpp:315:38: error: use of undeclared identifier '_omcQ_24tmpVar15_'; did you mean '_omcQ_24tmpVar16_'? _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFunctions.cpp:292:12: note: '_omcQ_24tmpVar16_' declared here double _omcQ_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFMU.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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLCalcHelperMain.o] Error 1