Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",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.002483/0.002482, allocations: 181.6 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.199/2.199, 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.00114/0.001139, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.207e-05/4.211e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 47.58 MB / 369.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.552/0.6576, allocations: 151.3 MB / 0.5084 GB, free: 6.434 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003795/0.658, allocations: 95.56 kB / 0.5084 GB, free: 6.383 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.5/3.158, allocations: 357.2 MB / 0.8573 GB, free: 25.53 MB / 442.8 MB Notification: Performance of FrontEnd: time 1.634e-06/3.158, allocations: 1 kB / 0.8573 GB, free: 25.53 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.001471/3.16, allocations: 257.5 kB / 0.8575 GB, free: 25.53 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.05548/3.215, allocations: 10.47 MB / 0.8677 GB, free: 23.8 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/3.216, allocations: 6.062 kB / 0.8677 GB, free: 23.8 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008303/3.224, allocations: 1.56 MB / 0.8693 GB, free: 23.69 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04847/3.272, allocations: 5.403 MB / 0.8745 GB, free: 23.09 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03635/3.309, allocations: 9.469 MB / 0.8838 GB, free: 22.04 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001473/3.31, allocations: 0.8074 MB / 0.8846 GB, free: 22.02 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006092/3.316, allocations: 1.069 MB / 0.8856 GB, free: 22 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06228/3.379, allocations: 17.91 MB / 0.9031 GB, free: 20.79 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007836/3.38, allocations: 15.38 kB / 0.9031 GB, free: 20.78 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00522/3.385, allocations: 463.7 kB / 0.9036 GB, free: 20.78 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001204/3.386, allocations: 0.7457 MB / 0.9043 GB, free: 20.76 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05056/3.437, allocations: 16.55 MB / 0.9205 GB, free: 20.66 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1614/3.598, allocations: 58.08 MB / 0.9772 GB, free: 13.93 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04409/3.642, allocations: 26.02 MB / 1.003 GB, free: 10.13 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02106/3.663, allocations: 7.065 MB / 1.009 GB, free: 4.59 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08641/3.75, allocations: 23.2 MB / 1.032 GB, free: 4.141 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3902/4.14, allocations: 5.445 MB / 1.037 GB, free: 71.47 MB / 490.8 MB Notification: Performance of pre-optimization done (n=696): time 3.184e-05/4.14, allocations: 0 / 1.037 GB, free: 71.47 MB / 490.8 MB Notification: Performance of matching and sorting (n=714): time 0.099/4.239, allocations: 28.94 MB / 1.066 GB, free: 69.06 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001871/4.239, allocations: 433 kB / 1.066 GB, free: 68.61 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009672/4.249, allocations: 3.472 MB / 1.07 GB, free: 68.27 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001726/4.251, allocations: 129.4 kB / 1.07 GB, free: 68.24 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004994/4.256, allocations: 4.087 MB / 1.074 GB, free: 66.18 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004535/4.261, allocations: 2.388 MB / 1.076 GB, free: 64.64 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002265/4.263, allocations: 131.6 kB / 1.076 GB, free: 64.64 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001139/4.264, allocations: 0.6004 MB / 1.077 GB, free: 64.32 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01188/4.276, allocations: 4.373 MB / 1.081 GB, free: 64.3 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01367/4.29, allocations: 6.09 MB / 1.087 GB, free: 62.52 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01424/4.304, allocations: 5.404 MB / 1.092 GB, free: 62.42 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.817e-05/4.304, allocations: 16.97 kB / 1.092 GB, free: 62.42 MB / 490.8 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.03681/4.341, allocations: 13.12 MB / 1.105 GB, free: 61.87 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.47e-05/4.341, allocations: 26.2 kB / 1.105 GB, free: 61.87 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/4.341, allocations: 45.7 kB / 1.105 GB, free: 61.87 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01338/4.355, allocations: 3.852 MB / 1.109 GB, free: 61.76 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01066/4.365, allocations: 1.302 MB / 1.11 GB, free: 61.76 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02378/4.389, allocations: 16.63 MB / 1.126 GB, free: 52.45 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009124/4.398, allocations: 369.3 kB / 1.127 GB, free: 52.34 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002199/4.401, allocations: 301.1 kB / 1.127 GB, free: 52.29 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 202 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (684): * Single equations (assignments): 643 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 4 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.003039/4.404, allocations: 499.9 kB / 1.127 GB, free: 51.95 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002392/4.406, allocations: 0.5374 MB / 1.128 GB, free: 51.66 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04032/4.446, allocations: 13.32 MB / 1.141 GB, free: 45.86 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002514/4.447, allocations: 160.8 kB / 1.141 GB, free: 45.79 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.32e-05/4.447, allocations: 5.125 kB / 1.141 GB, free: 45.79 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001686/4.447, allocations: 33.67 kB / 1.141 GB, free: 45.79 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0779/4.525, allocations: 26.75 MB / 1.167 GB, free: 33.45 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.515e-05/4.525, allocations: 0 / 1.167 GB, free: 33.45 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008346/4.533, allocations: 0.8745 MB / 1.168 GB, free: 32.78 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01396/4.547, allocations: 3.937 MB / 1.172 GB, free: 29.58 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001896/4.549, allocations: 164 kB / 1.172 GB, free: 29.44 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02888/4.578, allocations: 20.78 MB / 1.192 GB, free: 9.32 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/4.578, allocations: 3.953 kB / 1.192 GB, free: 9.316 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05501/4.633, allocations: 19.74 MB / 1.212 GB, free: 7.602 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007376/4.641, allocations: 1.646 MB / 1.213 GB, free: 6.109 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003359/4.644, allocations: 119.3 kB / 1.213 GB, free: 5.996 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00794/4.652, allocations: 293.2 kB / 1.214 GB, free: 5.785 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002883/4.655, allocations: 0.5193 MB / 1.214 GB, free: 5.453 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001868/4.657, allocations: 187.1 kB / 1.214 GB, free: 5.285 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008262/4.665, allocations: 2.646 MB / 1.217 GB, free: 2.883 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.42e-07/4.665, allocations: 0 / 1.217 GB, free: 2.883 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0139/4.679, allocations: 2.018 MB / 1.219 GB, free: 0.8828 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (476): * Single equations (assignments): 432 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.4522/5.131, allocations: 21.47 MB / 1.24 GB, free: 80.27 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03211/5.164, allocations: 11.59 MB / 1.251 GB, free: 79.4 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/5.164, allocations: 3.688 kB / 1.251 GB, free: 79.4 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01914/5.183, allocations: 6.606 MB / 1.258 GB, free: 78.51 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01109/5.194, allocations: 1.195 MB / 1.259 GB, free: 78.48 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07607/5.27, allocations: 22.61 MB / 1.281 GB, free: 75.12 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01595/5.286, allocations: 6.988 MB / 1.288 GB, free: 74.14 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01134/5.297, allocations: 4.143 MB / 1.292 GB, free: 74.13 MB / 0.4949 GB Notification: Performance of SimCode: time 1.452e-06/5.298, allocations: 0 / 1.292 GB, free: 74.13 MB / 0.4949 GB 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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:583:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:583:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFMU.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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o] Error 1