Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotorHeatTransfer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01018/0.01019, allocations: 162.6 kB / 15.12 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.683/1.683, allocations: 170.8 MB / 186.6 MB, free: 1.023 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002344/0.002344, allocations: 102.8 kB / 226.2 MB, free: 10.08 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4778/0.4778, allocations: 38.06 MB / 303.7 MB, free: 42.72 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004637, allocations: 12 kB / 363 MB, free: 5.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1061, allocations: 48.72 MB / 411.7 MB, free: 4.672 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer): time 0.3422/0.4484, allocations: 43.4 MB / 455.1 MB, free: 28.02 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03277/0.4812, allocations: 19.92 MB / 475 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0022/0.4834, allocations: 41.91 kB / 475.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.4863, allocations: 0.6085 MB / 475.7 MB, free: 13.82 MB / 330.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01802/0.5043, allocations: 4.368 MB / 480.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01257/0.5169, allocations: 3.015 MB / 483.1 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004932/0.5219, allocations: 2.748 MB / 485.8 MB, free: 9.012 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002013/0.524, allocations: 0.9053 MB / 486.7 MB, free: 8.645 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.5266, allocations: 0.9293 MB / 487.7 MB, free: 8.254 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01638/0.543, allocations: 6.787 MB / 494.4 MB, free: 6.977 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005388/0.5436, allocations: 79.06 kB / 494.5 MB, free: 6.973 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02075/0.5644, allocations: 7.351 MB / 0.4901 GB, free: 3.402 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005519/0.565, allocations: 278.8 kB / 0.4904 GB, free: 3.129 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007936/0.5658, allocations: 344.9 kB / 0.4907 GB, free: 2.785 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.5762, allocations: 4.56 MB / 0.4952 GB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.5763, allocations: 0 / 0.4952 GB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.5763, allocations: 0 / 0.4952 GB, free: 14.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.149e-05/0.5763, allocations: 0 / 0.4952 GB, free: 14.21 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.008257/0.5846, allocations: 2.175 MB / 0.4973 GB, free: 11.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.5847, allocations: 12.03 kB / 0.4973 GB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005172/0.5852, allocations: 198.5 kB / 0.4975 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003803/0.589, allocations: 405.7 kB / 0.4979 GB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002694/0.5918, allocations: 0.9027 MB / 0.4987 GB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.592, allocations: 102.7 kB / 0.4988 GB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003259/0.5923, allocations: 128 kB / 0.499 GB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006088/0.5984, allocations: 1.688 MB / 0.5006 GB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.567e-05/0.5985, allocations: 11.84 kB / 0.5006 GB, free: 8.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002044/0.5988, allocations: 52 kB / 0.5007 GB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.049e-05/0.5988, allocations: 54.36 kB / 0.5007 GB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005945/0.6048, allocations: 1.371 MB / 0.5021 GB, free: 6.91 MB / 346.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.01456/0.6194, allocations: 7.549 MB / 0.5094 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004024/0.6235, allocations: 0.8887 MB / 0.5103 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/0.6248, allocations: 371.8 kB / 0.5107 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06402/0.6889, allocations: 18.58 MB / 0.5288 GB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.516e-05/0.689, allocations: 48.47 kB / 0.5289 GB, free: 8.672 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 3.727e-06/0.689, allocations: 0 / 0.5289 GB, free: 8.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=93): time 0.05457/0.7436, allocations: 5.891 MB / 0.5346 GB, free: 2.637 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2531/0.9968, allocations: 47.71 MB / 0.5812 GB, free: 2.105 MB / 426.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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.002026/0.9988, allocations: 0.926 MB / 0.5821 GB, free: 1.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/0.9991, allocations: 37.81 kB / 0.5821 GB, free: 1.117 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007462/0.9999, allocations: 0.7198 MB / 0.5828 GB, free: 396 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005066/1, allocations: 323.4 kB / 0.5832 GB, free: 68 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/1.001, allocations: 24 kB / 0.5832 GB, free: 44 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.2963/1.297, allocations: 355.1 kB / 0.5835 GB, free: 112 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001912/1.299, allocations: 483.9 kB / 0.584 GB, free: 112 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002034/1.301, allocations: 0.9789 MB / 0.5849 GB, free: 111.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/1.303, allocations: 0.6133 MB / 0.5855 GB, free: 111.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/1.303, allocations: 5.562 kB / 0.5855 GB, free: 111.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005958/1.309, allocations: 1.768 MB / 0.5873 GB, free: 111.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003306/1.309, allocations: 0.5578 MB / 0.5878 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/1.309, allocations: 15.75 kB / 0.5878 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009312/1.319, allocations: 1.065 MB / 0.5889 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/1.321, allocations: 308.7 kB / 0.5892 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003109/1.324, allocations: 1.625 MB / 0.5907 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002257/1.326, allocations: 137.7 kB / 0.5909 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002196/1.327, allocations: 80.58 kB / 0.591 GB, free: 109.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/1.327, allocations: 5.5 kB / 0.591 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007781/1.334, allocations: 1.85 MB / 0.5928 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/1.334, allocations: 21.91 kB / 0.5928 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005465/1.34, allocations: 0.7234 MB / 0.5935 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/1.342, allocations: 314.8 kB / 0.5938 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002794/1.345, allocations: 1.598 MB / 0.5954 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/1.347, allocations: 133.6 kB / 0.5955 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001954/1.347, allocations: 78.02 kB / 0.5956 GB, free: 108.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (149): * Single equations (assignments): 145 * Array equations: 2 * 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 8,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001065/1.348, allocations: 427.9 kB / 0.596 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/1.348, allocations: 118 kB / 0.5961 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008369/1.357, allocations: 3.72 MB / 0.5997 GB, free: 106.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01108/1.368, allocations: 3.178 MB / 0.6028 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/1.368, allocations: 0 / 0.6028 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-05/1.368, allocations: 3.375 kB / 0.6028 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/1.387, allocations: 6.015 MB / 0.6087 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/1.387, allocations: 3.938 kB / 0.6087 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/1.389, allocations: 175.5 kB / 0.6089 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01133/1.4, allocations: 1.589 MB / 0.6104 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001803/1.4, allocations: 36.67 kB / 0.6104 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004227/1.404, allocations: 2.42 MB / 0.6128 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08873/1.493, allocations: 24.29 MB / 0.6365 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007858/1.501, allocations: 3.882 MB / 0.6403 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008852/1.502, allocations: 398.2 kB / 0.6407 GB, free: 87.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/1.502, allocations: 27.53 kB / 0.6407 GB, free: 87.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/1.504, allocations: 102.7 kB / 0.6408 GB, free: 87.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002181/1.504, allocations: 78.08 kB / 0.6409 GB, free: 87.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/1.504, allocations: 39.45 kB / 0.6409 GB, free: 87.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001227/1.505, allocations: 0.6534 MB / 0.6416 GB, free: 87.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.505, allocations: 0.9375 kB / 0.6416 GB, free: 87.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01527/1.521, allocations: 3.951 MB / 0.6454 GB, free: 87.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],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,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.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 (82): * Single equations (assignments): 74 * 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 6,3 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03846/1.559, allocations: 6.754 MB / 0.652 GB, free: 84.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007645/1.567, allocations: 2.472 MB / 0.6544 GB, free: 83.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.567, allocations: 0 / 0.6544 GB, free: 83.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003143/1.57, allocations: 1.168 MB / 0.6556 GB, free: 83.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/1.574, allocations: 411.8 kB / 0.656 GB, free: 83.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1053/1.679, allocations: 45.92 MB / 0.7008 GB, free: 43.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/1.68, allocations: 1.439 MB / 0.7022 GB, free: 42.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00268/1.683, allocations: 0.7168 MB / 0.7029 GB, free: 41.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/1.684, allocations: 0.7141 MB / 0.7036 GB, free: 40.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.192e-06/1.684, allocations: 0 / 0.7036 GB, free: 40.82 MB / 426.7 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: motor.Jr.