Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.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.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",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.009938/0.009938, allocations: 163.6 kB / 15.12 MB, free: 5.953 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.592/1.592, allocations: 170.8 MB / 186.6 MB, free: 1.113 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.001733/0.001733, allocations: 94.84 kB / 226.2 MB, free: 10.1 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.4457/0.4457, allocations: 38.05 MB / 303.7 MB, free: 42.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004785/0.0004787, allocations: 12 kB / 363 MB, free: 5.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1051, allocations: 48.71 MB / 411.7 MB, free: 4.684 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor): time 0.3526/0.4578, allocations: 43.32 MB / 455 MB, free: 27.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03322/0.4911, allocations: 19.89 MB / 474.9 MB, free: 13.72 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002982/0.4941, allocations: 48.12 kB / 475 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004296/0.4985, allocations: 0.6123 MB / 475.6 MB, free: 13.39 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.0226/0.5212, allocations: 4.352 MB / 479.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01187/0.533, allocations: 3.009 MB / 482.9 MB, free: 9.879 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004682/0.5377, allocations: 2.715 MB / 485.7 MB, free: 8.625 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.5396, allocations: 0.8755 MB / 486.5 MB, free: 8.266 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.5417, allocations: 0.9199 MB / 487.5 MB, free: 7.875 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01507/0.5568, allocations: 6.776 MB / 494.2 MB, free: 6.723 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004134/0.5572, allocations: 74.25 kB / 494.3 MB, free: 6.723 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01938/0.5766, allocations: 7.266 MB / 0.4898 GB, free: 3.254 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003879/0.5771, allocations: 283.8 kB / 0.4901 GB, free: 3.031 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006012/0.5777, allocations: 337.4 kB / 0.4904 GB, free: 2.852 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009511/0.5872, allocations: 4.51 MB / 0.4948 GB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.5873, allocations: 0 / 0.4948 GB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5873, allocations: 0 / 0.4948 GB, free: 14.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.5873, allocations: 0 / 0.4948 GB, free: 14.57 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.007837/0.5952, allocations: 2.167 MB / 0.4969 GB, free: 12.35 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.5952, allocations: 8.031 kB / 0.4969 GB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004668/0.5957, allocations: 195.4 kB / 0.4971 GB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003723/0.5994, allocations: 405.8 kB / 0.4975 GB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004438/0.6039, allocations: 0.8871 MB / 0.4984 GB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.6043, allocations: 106.6 kB / 0.4985 GB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005017/0.6048, allocations: 124 kB / 0.4986 GB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009497/0.6143, allocations: 1.673 MB / 0.5002 GB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.247e-05/0.6144, allocations: 7.906 kB / 0.5002 GB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000297/0.6148, allocations: 56 kB / 0.5003 GB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.6149, allocations: 42.31 kB / 0.5003 GB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007362/0.6223, allocations: 1.352 MB / 0.5017 GB, free: 7.348 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.01388/0.6362, allocations: 7.582 MB / 0.5091 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004102/0.6403, allocations: 0.9236 MB / 0.51 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.6416, allocations: 358.4 kB / 0.5103 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06327/0.7048, allocations: 18.58 MB / 0.5284 GB, free: 9.094 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.276e-05/0.705, allocations: 43.88 kB / 0.5285 GB, free: 9.043 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.396e-06/0.705, allocations: 4 kB / 0.5285 GB, free: 9.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.06184/0.7668, allocations: 6.431 MB / 0.5348 GB, free: 2.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2577/1.025, allocations: 48.25 MB / 0.5819 GB, free: 1.391 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.001975/1.027, allocations: 0.9104 MB / 0.5828 GB, free: 472 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002107/1.027, allocations: 41.7 kB / 0.5828 GB, free: 424 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2889/1.316, allocations: 0.715 MB / 0.5835 GB, free: 111.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004254/1.316, allocations: 321.6 kB / 0.5838 GB, free: 111.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/1.316, allocations: 28.84 kB / 0.5838 GB, free: 111.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/1.317, allocations: 352.9 kB / 0.5842 GB, free: 111.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/1.318, allocations: 480.1 kB / 0.5846 GB, free: 111.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002213/1.321, allocations: 0.9747 MB / 0.5856 GB, free: 110.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/1.323, allocations: 0.6009 MB / 0.5862 GB, free: 110.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-05/1.323, allocations: 6.625 kB / 0.5862 GB, free: 110.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006468/1.329, allocations: 1.783 MB / 0.5879 GB, free: 110.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003666/1.33, allocations: 0.5619 MB / 0.5885 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.592e-05/1.33, allocations: 18.23 kB / 0.5885 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01081/1.341, allocations: 1.188 MB / 0.5897 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/1.343, allocations: 302.2 kB / 0.5899 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/1.347, allocations: 1.767 MB / 0.5917 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/1.349, allocations: 114.3 kB / 0.5918 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002068/1.349, allocations: 76.72 kB / 0.5919 GB, free: 108.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/1.349, allocations: 5.219 kB / 0.5919 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006907/1.356, allocations: 1.815 MB / 0.5936 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/1.356, allocations: 15.25 kB / 0.5936 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006162/1.363, allocations: 0.7988 MB / 0.5944 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001848/1.364, allocations: 297.9 kB / 0.5947 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003814/1.368, allocations: 1.739 MB / 0.5964 GB, free: 107.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002012/1.37, allocations: 116.9 kB / 0.5965 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/1.371, allocations: 77.89 kB / 0.5966 GB, free: 107.5 MB / 426.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.000951/1.372, allocations: 424.5 kB / 0.597 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002903/1.372, allocations: 115.6 kB / 0.5971 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/1.382, allocations: 3.897 MB / 0.6009 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.134e-05/1.382, allocations: 43.52 kB / 0.601 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/1.382, allocations: 4.562 kB / 0.601 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/1.382, allocations: 7.422 kB / 0.601 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/1.396, allocations: 5.941 MB / 0.6068 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.396, allocations: 7.359 kB / 0.6068 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/1.397, allocations: 156.4 kB / 0.6069 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008596/1.406, allocations: 1.726 MB / 0.6086 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/1.406, allocations: 35.31 kB / 0.6086 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00484/1.411, allocations: 2.465 MB / 0.611 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09203/1.503, allocations: 24.79 MB / 0.6353 GB, free: 89.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/1.513, allocations: 3.903 MB / 0.6391 GB, free: 88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008969/1.514, allocations: 390.9 kB / 0.6394 GB, free: 87.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002579/1.515, allocations: 15.75 kB / 0.6395 GB, free: 87.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/1.516, allocations: 96.88 kB / 0.6396 GB, free: 87.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/1.516, allocations: 70.62 kB / 0.6396 GB, free: 87.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/1.516, allocations: 42.5 kB / 0.6397 GB, free: 87.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001275/1.518, allocations: 0.6879 MB / 0.6403 GB, free: 87.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.518, allocations: 0 / 0.6403 GB, free: 87.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01509/1.533, allocations: 3.912 MB / 0.6442 GB, free: 87.18 MB / 426.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.04021/1.573, allocations: 6.799 MB / 0.6508 GB, free: 84.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008422/1.582, allocations: 2.45 MB / 0.6532 GB, free: 83.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.582, allocations: 0 / 0.6532 GB, free: 83.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003312/1.585, allocations: 1.13 MB / 0.6543 GB, free: 83.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/1.589, allocations: 411 kB / 0.6547 GB, free: 83.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1086/1.697, allocations: 45.79 MB / 0.6994 GB, free: 45.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009853/1.698, allocations: 1.427 MB / 0.7008 GB, free: 43.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002562/1.701, allocations: 0.7474 MB / 0.7015 GB, free: 43.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/1.702, allocations: 0.6985 MB / 0.7022 GB, free: 42.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.333e-06/1.702, allocations: 0 / 0.7022 GB, free: 42.36 MB / 426.7 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: motor.Jr.