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.001717/0.001717, allocations: 181.3 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.191/2.191, 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.001196/0.001196, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.603e-05/3.614e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4963/0.6023, allocations: 114.5 MB / 483.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.6026, allocations: 86.02 kB / 483.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6757/1.278, allocations: 86.02 MB / 0.5564 GB, free: 93.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.278, allocations: 0 / 0.5564 GB, free: 93.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003089/1.279, allocations: 71 kB / 0.5565 GB, free: 93.4 MB / 410.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.01037/1.289, allocations: 2.801 MB / 0.5592 GB, free: 92.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/1.289, allocations: 8.531 kB / 0.5592 GB, free: 92.22 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001561/1.291, allocations: 385.5 kB / 0.5596 GB, free: 92.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002556/1.293, allocations: 445.7 kB / 0.56 GB, free: 91.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006638/1.3, allocations: 1.947 MB / 0.5619 GB, free: 91.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/1.3, allocations: 202.1 kB / 0.5621 GB, free: 91.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/1.301, allocations: 274.6 kB / 0.5624 GB, free: 91.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/1.312, allocations: 3.404 MB / 0.5657 GB, free: 91.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001208/1.312, allocations: 4.594 kB / 0.5657 GB, free: 91.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004552/1.312, allocations: 115 kB / 0.5658 GB, free: 91.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/1.312, allocations: 117.5 kB / 0.5659 GB, free: 91.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008748/1.321, allocations: 2.699 MB / 0.5686 GB, free: 90.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02973/1.351, allocations: 11.25 MB / 0.5795 GB, free: 84.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/1.355, allocations: 2.267 MB / 0.5818 GB, free: 83.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002339/1.357, allocations: 0.9786 MB / 0.5827 GB, free: 83.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005098/1.358, allocations: 224.9 kB / 0.5829 GB, free: 82.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/1.358, allocations: 46.41 kB / 0.583 GB, free: 82.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 4.93e-06/1.358, allocations: 0 / 0.583 GB, free: 82.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=157): time 0.0274/1.385, allocations: 7.192 MB / 0.59 GB, free: 80.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/1.386, allocations: 74.17 kB / 0.5901 GB, free: 80.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004057/1.39, allocations: 1.713 MB / 0.5917 GB, free: 79.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004442/1.39, allocations: 56.23 kB / 0.5918 GB, free: 79.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008969/1.391, allocations: 1.227 MB / 0.593 GB, free: 78.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007441/1.392, allocations: 0.5276 MB / 0.5935 GB, free: 78.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/1.392, allocations: 35.12 kB / 0.5935 GB, free: 78.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/1.392, allocations: 381.6 kB / 0.5939 GB, free: 77.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/1.394, allocations: 0.8811 MB / 0.5948 GB, free: 77.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/1.397, allocations: 1.331 MB / 0.5961 GB, free: 76.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002603/1.399, allocations: 1.097 MB / 0.5971 GB, free: 76.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-05/1.399, allocations: 3.75 kB / 0.5971 GB, free: 76.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.007816/1.407, allocations: 2.898 MB / 0.6 GB, free: 75.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/1.407, allocations: 15.53 kB / 0.6 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.703e-05/1.407, allocations: 14.84 kB / 0.6 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/1.41, allocations: 0.6262 MB / 0.6006 GB, free: 74.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003324/1.413, allocations: 434 kB / 0.601 GB, free: 74.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/1.425, allocations: 5.709 MB / 0.6066 GB, free: 69.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003152/1.428, allocations: 125 kB / 0.6067 GB, free: 69.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005178/1.429, allocations: 83.42 kB / 0.6068 GB, free: 69.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete 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.0005212/1.429, allocations: 206.5 kB / 0.607 GB, free: 69.24 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007915/1.43, allocations: 221.3 kB / 0.6072 GB, free: 69.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007661/1.438, allocations: 2.707 MB / 0.6099 GB, free: 66.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.616e-05/1.438, allocations: 20 kB / 0.6099 GB, free: 66.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/1.438, allocations: 8 kB / 0.6099 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.456e-05/1.438, allocations: 10.69 kB / 0.6099 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01646/1.454, allocations: 5.74 MB / 0.6155 GB, free: 62.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-05/1.454, allocations: 8.031 kB / 0.6155 GB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002491/1.457, allocations: 286.9 kB / 0.6158 GB, free: 61.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003208/1.46, allocations: 0.6889 MB / 0.6164 GB, free: 61.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003511/1.461, allocations: 43.17 kB / 0.6165 GB, free: 61.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/1.474, allocations: 7.421 MB / 0.6237 GB, free: 54.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/1.474, allocations: 7.938 kB / 0.6237 GB, free: 54.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009833/1.484, allocations: 4.106 MB / 0.6278 GB, free: 50.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00194/1.486, allocations: 0.4949 MB / 0.6282 GB, free: 50.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007882/1.487, allocations: 32 kB / 0.6283 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00263/1.489, allocations: 115 kB / 0.6284 GB, free: 49.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006359/1.49, allocations: 127.4 kB / 0.6285 GB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001837/1.49, allocations: 50.66 kB / 0.6285 GB, free: 49.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00321/1.494, allocations: 1.315 MB / 0.6298 GB, free: 48.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.354e-06/1.494, allocations: 0 / 0.6298 GB, free: 48.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003839/1.497, allocations: 0.6754 MB / 0.6305 GB, free: 47.96 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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.01106/1.509, allocations: 5.471 MB / 0.6358 GB, free: 42.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006989/1.516, allocations: 2.659 MB / 0.6384 GB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.516, allocations: 4 kB / 0.6384 GB, free: 39.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004773/1.52, allocations: 1.665 MB / 0.6401 GB, free: 38.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004152/1.525, allocations: 461.9 kB / 0.6405 GB, free: 37.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/1.541, allocations: 5.399 MB / 0.6458 GB, free: 32.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003001/1.544, allocations: 2.175 MB / 0.6479 GB, free: 30.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003013/1.547, allocations: 1.069 MB / 0.6489 GB, free: 29 MB / 410.7 MB Notification: Performance of SimCode: time 1.743e-06/1.548, allocations: 4 kB / 0.6489 GB, free: 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:34: error: use of undeclared identifier 'D_24tmpVar12_'; did you mean 'D_24tmpVar13_'? D_24tmpVar13_ = std::cos(D_24tmpVar12_); ^~~~~~~~~~~~~ D_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFunctions.cpp:255:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFunctions.cpp:315:34: error: use of undeclared identifier 'D_24tmpVar15_'; did you mean 'D_24tmpVar16_'? D_24tmpVar16_ = std::sin(D_24tmpVar15_); ^~~~~~~~~~~~~ D_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOLFunctions.cpp:292:12: note: 'D_24tmpVar16_' declared here double D_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