Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.013/2.013, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004779, allocations: 19.98 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3634, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor): time 0.07193/0.4354, allocations: 39.08 MB / 370.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04067/0.4761, allocations: 18.6 MB / 389 MB, free: 4.711 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.4785, allocations: 47.69 kB / 389 MB, free: 4.664 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003293/0.4818, allocations: 0.6493 MB / 389.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02081/0.5027, allocations: 4.386 MB / 394 MB, free: 15.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0131/0.5158, allocations: 2.997 MB / 397 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004976/0.5208, allocations: 1.825 MB / 398.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001961/0.5228, allocations: 0.8832 MB / 399.7 MB, free: 9.867 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003083/0.5259, allocations: 0.938 MB / 400.7 MB, free: 8.926 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01815/0.5441, allocations: 6.506 MB / 407.2 MB, free: 2.414 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004695/0.5446, allocations: 76 kB / 407.3 MB, free: 2.34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02235/0.567, allocations: 7.48 MB / 414.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000519/0.5676, allocations: 274.9 kB / 415 MB, free: 10.58 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006822/0.5683, allocations: 336.9 kB / 415.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01177/0.5801, allocations: 4.478 MB / 419.8 MB, free: 5.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.5801, allocations: 0 / 419.8 MB, free: 5.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5802, allocations: 0 / 419.8 MB, free: 5.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.097e-05/0.5802, allocations: 4 kB / 419.8 MB, free: 5.754 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.007365/0.5876, allocations: 2.14 MB / 422 MB, free: 3.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.5876, allocations: 12.03 kB / 422 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003853/0.588, allocations: 190.3 kB / 422.2 MB, free: 3.352 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003346/0.5914, allocations: 389.8 kB / 422.5 MB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002688/0.5941, allocations: 0.9026 MB / 423.4 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.5943, allocations: 98.61 kB / 423.5 MB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003027/0.5946, allocations: 131.9 kB / 423.7 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006059/0.6007, allocations: 1.668 MB / 425.3 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.243e-05/0.6008, allocations: 0 / 425.3 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002372/0.6011, allocations: 63.97 kB / 425.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.853e-05/0.6012, allocations: 46.31 kB / 425.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005885/0.6071, allocations: 1.355 MB / 426.8 MB, free: 14.55 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/0.6218, allocations: 7.622 MB / 434.4 MB, free: 6.359 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004293/0.6262, allocations: 0.9186 MB / 435.3 MB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06509/0.6913, allocations: 18.57 MB / 453.9 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.625e-05/0.6914, allocations: 43.06 kB / 454 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.968e-06/0.6915, allocations: 4 kB / 454 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.06513/0.7566, allocations: 6.417 MB / 460.4 MB, free: 9.984 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.6165/1.373, allocations: 48.3 MB / 0.4968 GB, free: 121.6 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:12803:7-12804:76:writable] Warning: Parameter motor.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=motor.Jr) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/1.375, allocations: 0.908 MB / 0.4976 GB, free: 121.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002017/1.375, allocations: 41.61 kB / 0.4977 GB, free: 121.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004823/1.376, allocations: 0.7166 MB / 0.4984 GB, free: 120.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003662/1.376, allocations: 329.9 kB / 0.4987 GB, free: 120.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/1.376, allocations: 23.66 kB / 0.4987 GB, free: 120.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/1.376, allocations: 362.2 kB / 0.4991 GB, free: 120.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/1.378, allocations: 484.6 kB / 0.4995 GB, free: 119.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/1.38, allocations: 0.9649 MB / 0.5005 GB, free: 119 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002085/1.382, allocations: 0.6052 MB / 0.5011 GB, free: 118.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.371e-05/1.382, allocations: 7.562 kB / 0.5011 GB, free: 118.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.005789/1.388, allocations: 1.717 MB / 0.5027 GB, free: 117.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004062/1.388, allocations: 0.5654 MB / 0.5033 GB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/1.388, allocations: 19 kB / 0.5033 GB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01029/1.399, allocations: 1.191 MB / 0.5045 GB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/1.401, allocations: 296.5 kB / 0.5048 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004121/1.405, allocations: 1.768 MB / 0.5065 GB, free: 115.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/1.407, allocations: 107.8 kB / 0.5066 GB, free: 115.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/1.407, allocations: 80.16 kB / 0.5067 GB, free: 115 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/1.407, allocations: 7.75 kB / 0.5067 GB, free: 115 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007051/1.414, allocations: 1.818 MB / 0.5084 GB, free: 114.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/1.414, allocations: 15.66 kB / 0.5085 GB, free: 114.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005376/1.42, allocations: 0.7314 MB / 0.5092 GB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/1.422, allocations: 299.5 kB / 0.5095 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003398/1.425, allocations: 1.691 MB / 0.5111 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/1.427, allocations: 111.8 kB / 0.5112 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/1.427, allocations: 79.97 kB / 0.5113 GB, free: 111.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (144): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 2 {2 10,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.001016/1.428, allocations: 417.4 kB / 0.5117 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003364/1.428, allocations: 121.4 kB / 0.5118 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/1.438, allocations: 3.905 MB / 0.5156 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-05/1.439, allocations: 35.95 kB / 0.5157 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/1.439, allocations: 0 / 0.5157 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-05/1.439, allocations: 15.86 kB / 0.5157 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/1.452, allocations: 5.948 MB / 0.5215 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/1.452, allocations: 3.938 kB / 0.5215 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/1.453, allocations: 163.8 kB / 0.5216 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00837/1.461, allocations: 1.72 MB / 0.5233 GB, free: 98.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001903/1.462, allocations: 27.98 kB / 0.5233 GB, free: 98.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004818/1.466, allocations: 2.467 MB / 0.5258 GB, free: 96.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0892/1.556, allocations: 25.29 MB / 0.5505 GB, free: 70.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/1.566, allocations: 3.898 MB / 0.5543 GB, free: 66.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009419/1.567, allocations: 390.2 kB / 0.5546 GB, free: 65.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003021/1.568, allocations: 27.98 kB / 0.5547 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/1.569, allocations: 91.83 kB / 0.5548 GB, free: 65.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/1.569, allocations: 72.89 kB / 0.5548 GB, free: 65.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/1.57, allocations: 31.98 kB / 0.5549 GB, free: 65.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001278/1.571, allocations: 0.6783 MB / 0.5555 GB, free: 65.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.571, allocations: 0 / 0.5555 GB, free: 65.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01552/1.586, allocations: 3.912 MB / 0.5593 GB, free: 61.36 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 ($STATESET1.x,motor.inertiaRotor.phi,motor.la.i) * Number of discrete variables: 21 ($cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse12.region3boundary,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 0 * Non-linear torn systems: 2 {2 8,3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.04158/1.628, allocations: 6.787 MB / 0.566 GB, free: 54.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008178/1.636, allocations: 2.432 MB / 0.5683 GB, free: 52.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.636, allocations: 0 / 0.5683 GB, free: 52.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00337/1.64, allocations: 1.131 MB / 0.5694 GB, free: 51.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003389/1.643, allocations: 397 kB / 0.5698 GB, free: 50.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01977/1.663, allocations: 7.155 MB / 0.5768 GB, free: 43.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/1.664, allocations: 1.427 MB / 0.5782 GB, free: 41.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/1.665, allocations: 0.7063 MB / 0.5789 GB, free: 41.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/1.665, allocations: 0 / 0.5789 GB, free: 41.24 MB / 410.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: motor.Jr.