Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",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.0009066/0.0009066, allocations: 170.8 kB / 16.07 MB, free: 5.602 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.369/1.369, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0007298/0.0007301, allocations: 86.36 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1621/0.1621, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003406, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2487, allocations: 56.32 MB / 479.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl): time 0.007562/0.2563, allocations: 7.647 MB / 487.4 MB, free: 4.055 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005119/0.2614, allocations: 3.322 MB / 490.7 MB, free: 1.691 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009762/0.2624, allocations: 51.31 kB / 490.8 MB, free: 1.672 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007804/0.2632, allocations: 242.1 kB / 491 MB, free: 1.547 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002046/0.2653, allocations: 0.75 MB / 491.7 MB, free: 1.184 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2665, allocations: 387.5 kB / 492.1 MB, free: 1 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.269, allocations: 2.002 MB / 494.1 MB, free: 180 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002087/0.2711, allocations: 1.44 MB / 495.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.2722, allocations: 0.5838 MB / 496.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.2733, allocations: 0.7274 MB / 496.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.2735, allocations: 60.56 kB / 496.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.2747, allocations: 0.6118 MB / 497.5 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005626/0.2753, allocations: 464 kB / 498 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007468/0.2761, allocations: 0.6386 MB / 498.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001901/0.278, allocations: 1.885 MB / 0.4888 GB, free: 13.19 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.278, allocations: 1.125 kB / 0.4888 GB, free: 13.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.278, allocations: 3.938 kB / 0.4888 GB, free: 13.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.278, allocations: 4 kB / 0.4888 GB, free: 13.18 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003247/0.2813, allocations: 1.644 MB / 0.4904 GB, free: 11.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2813, allocations: 13.75 kB / 0.4904 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002509/0.2816, allocations: 187.4 kB / 0.4906 GB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007036/0.2823, allocations: 191.5 kB / 0.4908 GB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.2839, allocations: 0.9536 MB / 0.4917 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.284, allocations: 197.8 kB / 0.4919 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000253/0.2843, allocations: 123.5 kB / 0.492 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/0.2877, allocations: 1.847 MB / 0.4938 GB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.486e-05/0.2877, allocations: 10.59 kB / 0.4938 GB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.2878, allocations: 50.97 kB / 0.4939 GB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/0.288, allocations: 78.44 kB / 0.494 GB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002848/0.2908, allocations: 1.449 MB / 0.4954 GB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008274/0.2991, allocations: 6.387 MB / 0.5016 GB, free: 3.613 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003143/0.3023, allocations: 1.263 MB / 0.5028 GB, free: 2.594 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001356/0.3037, allocations: 0.6297 MB / 0.5035 GB, free: 1.953 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.259e-05/0.3038, allocations: 12.66 kB / 0.5035 GB, free: 1.941 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001529/0.3053, allocations: 0.8015 MB / 0.5042 GB, free: 1.121 MB / 330.7 MB Notification: Performance of pre-optimization done (n=88): time 3.146e-06/0.3053, allocations: 4 kB / 0.5043 GB, free: 1.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=92): time 0.008022/0.3133, allocations: 3.626 MB / 0.5078 GB, free: 13.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.682e-05/0.3135, allocations: 157.1 kB / 0.5079 GB, free: 13.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.3145, allocations: 0.8291 MB / 0.5088 GB, free: 12.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.744e-05/0.3146, allocations: 57.69 kB / 0.5088 GB, free: 12.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004605/0.3151, allocations: 0.5573 MB / 0.5094 GB, free: 11.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.3154, allocations: 307.7 kB / 0.5096 GB, free: 11.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.968e-05/0.3154, allocations: 24.03 kB / 0.5097 GB, free: 11.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3156, allocations: 357.9 kB / 0.51 GB, free: 11.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008006/0.3164, allocations: 0.5257 MB / 0.5105 GB, free: 10.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009871/0.3174, allocations: 0.8656 MB / 0.5114 GB, free: 9.566 MB / 346.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.005868/0.3232, allocations: 3.205 MB / 0.5145 GB, free: 6.188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.3233, allocations: 4 kB / 0.5145 GB, free: 6.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003847/0.3271, allocations: 2.099 MB / 0.5166 GB, free: 4.066 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003124/0.3275, allocations: 444.9 kB / 0.517 GB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.3275, allocations: 11.98 kB / 0.517 GB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001991/0.3295, allocations: 0.818 MB / 0.5178 GB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006168/0.3301, allocations: 179.7 kB / 0.518 GB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/0.3323, allocations: 1.874 MB / 0.5198 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008616/0.3332, allocations: 87.91 kB / 0.5199 GB, free: 488 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.3333, allocations: 83.89 kB / 0.52 GB, free: 404 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.3334, allocations: 7.984 kB / 0.52 GB, free: 396 kB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003441/0.3368, allocations: 2.122 MB / 0.522 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.3368, allocations: 12 kB / 0.522 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001801/0.3387, allocations: 0.7756 MB / 0.5228 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.3393, allocations: 183.7 kB / 0.523 GB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/0.3411, allocations: 1.835 MB / 0.5248 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008328/0.342, allocations: 83.94 kB / 0.5248 GB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.3421, allocations: 75.95 kB / 0.5249 GB, free: 11.26 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$PRE.sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],$whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.000816/0.3429, allocations: 0.5327 MB / 0.5254 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.3431, allocations: 106.7 kB / 0.5255 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002963/0.3461, allocations: 1.341 MB / 0.5268 GB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.702e-05/0.3461, allocations: 20 kB / 0.5269 GB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3461, allocations: 4 kB / 0.5269 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.3462, allocations: 3.984 kB / 0.5269 GB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00502/0.3512, allocations: 2.762 MB / 0.5296 GB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.3512, allocations: 0 / 0.5296 GB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007609/0.352, allocations: 159.8 kB / 0.5297 GB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.3521, allocations: 32.77 kB / 0.5298 GB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.36e-05/0.3522, allocations: 31.91 kB / 0.5298 GB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009047/0.3531, allocations: 1.288 MB / 0.531 GB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3531, allocations: 0 / 0.531 GB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004274/0.3574, allocations: 2.115 MB / 0.5331 GB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005032/0.3579, allocations: 291.8 kB / 0.5334 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002178/0.3581, allocations: 95.94 kB / 0.5335 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008689/0.359, allocations: 111.9 kB / 0.5336 GB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.3592, allocations: 60.84 kB / 0.5336 GB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.981e-05/0.3593, allocations: 31.98 kB / 0.5337 GB, free: 2.008 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007129/0.36, allocations: 0.5615 MB / 0.5342 GB, free: 1.449 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.36, allocations: 4 kB / 0.5342 GB, free: 1.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001487/0.3615, allocations: 484 kB / 0.5347 GB, free: 0.9727 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 73 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004889/0.3664, allocations: 2.773 MB / 0.5374 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00421/0.3706, allocations: 2.603 MB / 0.5399 GB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3706, allocations: 0 / 0.5399 GB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.3721, allocations: 0.7439 MB / 0.5407 GB, free: 10.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.3735, allocations: 255.6 kB / 0.5409 GB, free: 10.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.3868, allocations: 8.75 MB / 0.5495 GB, free: 1.438 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008424/0.3876, allocations: 1.234 MB / 0.5507 GB, free: 180 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000633/0.3883, allocations: 431.3 kB / 0.5511 GB, free: 15.75 MB / 394.7 MB Notification: Performance of SimCode: time 6.81e-07/0.3883, allocations: 0 / 0.5511 GB, free: 15.75 MB / 394.7 MB Error: Error building simulator. Build log: clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -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/sundials" -I"." -DUSE_LOGGER -c -o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlFMU.cpp:11: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:37: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.h:44: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h:65:56: warning: returning reference to local temporary object [-Wreturn-stack-address] virtual const string& getVariableFilter() { return "";} ^~ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlFMU.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) { ^ 2 warnings generated. clang++ -std=c++14 -shared -o PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl.so OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlCalcHelperMain.o -L"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -L"/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Examples/AC3ph" -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static -static-libstdc++ -static-libgcc /usr/bin/ld: OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlCalcHelperMain.o: in function `Functions::Modelica_Math_Matrices_LAPACK_dgetri(BaseArray const&, BaseArray const&, Modelica_Math_Matrices_LAPACK_dgetriType&)': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl/./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlFunctions.cpp:127: undefined reference to `dgetri_' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl_FMU.makefile:95: PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl.fmu] Error 1