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.009739/0.009739, allocations: 165.5 kB / 15.11 MB, free: 5.93 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.614/1.614, allocations: 170.8 MB / 186.6 MB, free: 1.129 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.002019/0.002019, allocations: 114.4 kB / 226.2 MB, free: 10.09 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.4535/0.4535, allocations: 38.06 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004742/0.0004743, allocations: 12 kB / 363 MB, free: 5.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.768/7.874, allocations: 2.518 GB / 2.92 GB, free: 100.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000321/7.875, allocations: 93.75 kB / 2.92 GB, free: 100.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.098/9.972, allocations: 446.8 MB / 3.357 GB, free: 10.56 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.686e-06/9.972, allocations: 0 / 3.357 GB, free: 10.56 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001326/9.973, allocations: 35.83 kB / 3.357 GB, free: 10.53 MB / 442.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.0104/9.983, allocations: 2.439 MB / 3.359 GB, free: 8.043 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/9.983, allocations: 8.031 kB / 3.359 GB, free: 8.035 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006199/9.984, allocations: 202.1 kB / 3.359 GB, free: 7.832 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004309/9.988, allocations: 429.6 kB / 3.36 GB, free: 7.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003133/9.991, allocations: 1.013 MB / 3.361 GB, free: 6.371 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/9.991, allocations: 106.7 kB / 3.361 GB, free: 6.266 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000289/9.992, allocations: 143.9 kB / 3.361 GB, free: 6.125 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005362/9.997, allocations: 1.678 MB / 3.363 GB, free: 4.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.514e-05/9.997, allocations: 4 kB / 3.363 GB, free: 4.336 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/9.997, allocations: 56 kB / 3.363 GB, free: 4.281 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.528e-05/9.997, allocations: 58.3 kB / 3.363 GB, free: 4.223 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005497/10, allocations: 1.367 MB / 3.364 GB, free: 2.848 MB / 442.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.3479/10.35, allocations: 7.626 MB / 3.371 GB, free: 22.49 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004313/10.36, allocations: 0.9166 MB / 3.372 GB, free: 22.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05745/10.41, allocations: 18.35 MB / 3.39 GB, free: 27.01 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.421e-05/10.41, allocations: 45.55 kB / 3.39 GB, free: 26.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=71): time 3.056e-06/10.41, allocations: 2.312 kB / 3.39 GB, free: 26.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=93): time 0.05601/10.47, allocations: 6.11 MB / 3.396 GB, free: 25.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2055/10.67, allocations: 42.84 MB / 3.438 GB, free: 20.48 MB / 458.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.001573/10.68, allocations: 0.7741 MB / 3.439 GB, free: 20.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002381/10.68, allocations: 42.17 kB / 3.439 GB, free: 20.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005299/10.68, allocations: 0.7151 MB / 3.44 GB, free: 20.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/10.68, allocations: 327.3 kB / 3.44 GB, free: 19.85 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/10.68, allocations: 23.72 kB / 3.44 GB, free: 19.85 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/10.68, allocations: 365.9 kB / 3.44 GB, free: 19.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001604/10.68, allocations: 487.2 kB / 3.441 GB, free: 19.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001844/10.68, allocations: 0.9823 MB / 3.442 GB, free: 18.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/10.68, allocations: 0.6058 MB / 3.442 GB, free: 18.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/10.68, allocations: 3.844 kB / 3.442 GB, free: 18.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.006022/10.69, allocations: 1.778 MB / 3.444 GB, free: 18.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003226/10.69, allocations: 6.27 MB / 3.45 GB, free: 28.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-05/10.69, allocations: 15.44 kB / 3.45 GB, free: 28.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008854/10.7, allocations: 1.023 MB / 3.451 GB, free: 28.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/10.7, allocations: 310 kB / 3.451 GB, free: 28.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003657/10.71, allocations: 1.622 MB / 3.453 GB, free: 27.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00246/10.71, allocations: 138.6 kB / 3.453 GB, free: 27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003539/10.71, allocations: 89.31 kB / 3.453 GB, free: 27 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/10.71, allocations: 7.438 kB / 3.453 GB, free: 27 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00771/10.72, allocations: 1.869 MB / 3.455 GB, free: 26.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.893e-05/10.72, allocations: 16.53 kB / 3.455 GB, free: 26.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005676/10.72, allocations: 0.7095 MB / 3.456 GB, free: 26.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/10.73, allocations: 311.8 kB / 3.456 GB, free: 26.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003648/10.73, allocations: 1.588 MB / 3.458 GB, free: 25.83 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002364/10.73, allocations: 129.2 kB / 3.458 GB, free: 25.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002777/10.73, allocations: 85.36 kB / 3.458 GB, free: 25.82 MB / 474.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 (150): * Single equations (assignments): 146 * 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.001206/10.73, allocations: 426.9 kB / 3.458 GB, free: 25.63 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003818/10.73, allocations: 123.2 kB / 3.458 GB, free: 25.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008202/10.74, allocations: 3.72 MB / 3.462 GB, free: 25.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006635/10.75, allocations: 3.175 MB / 3.465 GB, free: 25.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/10.75, allocations: 0 / 3.465 GB, free: 25.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/10.75, allocations: 6.703 kB / 3.465 GB, free: 25.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/10.76, allocations: 5.937 MB / 3.471 GB, free: 24.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/10.76, allocations: 0 / 3.471 GB, free: 24.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/10.77, allocations: 179.1 kB / 3.471 GB, free: 24.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01089/10.78, allocations: 1.653 MB / 3.473 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002859/10.78, allocations: 36.66 kB / 3.473 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006166/10.78, allocations: 2.402 MB / 3.475 GB, free: 23.38 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1041/10.89, allocations: 24.68 MB / 3.499 GB, free: 18.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009407/10.9, allocations: 3.926 MB / 3.503 GB, free: 15.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/10.9, allocations: 391.7 kB / 3.503 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/10.9, allocations: 27.94 kB / 3.503 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/10.9, allocations: 102.2 kB / 3.503 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/10.9, allocations: 74.84 kB / 3.504 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/10.9, allocations: 40.58 kB / 3.504 GB, free: 15.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001286/10.9, allocations: 0.6367 MB / 3.504 GB, free: 15.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/10.9, allocations: 0 / 3.504 GB, free: 15.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01892/10.92, allocations: 3.999 MB / 3.508 GB, free: 11.59 MB / 474.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 ($cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.region3boundary,$cse13.region3boundary,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.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 (83): * Single equations (assignments): 75 * 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.04274/10.96, allocations: 7.578 MB / 3.516 GB, free: 6.617 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008654/10.97, allocations: 2.517 MB / 3.518 GB, free: 4.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/10.97, allocations: 0 / 3.518 GB, free: 4.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003468/10.98, allocations: 1.177 MB / 3.519 GB, free: 3.715 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00353/10.98, allocations: 402.6 kB / 3.52 GB, free: 3.418 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6168/11.6, allocations: 92.13 MB / 3.609 GB, free: 50.29 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001217/11.6, allocations: 1.445 MB / 3.611 GB, free: 49.56 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002878/11.6, allocations: 0.7127 MB / 3.612 GB, free: 49.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/11.6, allocations: 0.7316 MB / 3.612 GB, free: 49.54 MB / 490.7 MB Notification: Performance of SimCode: time 1.142e-06/11.6, allocations: 1.406 kB / 3.612 GB, free: 49.54 MB / 490.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: motor.Jr.