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.TestWaterPumpDCMotorHeatTransfer.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.TestWaterPumpDCMotorHeatTransfer,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotorHeatTransfer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.926/1.926, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004513/0.0004513, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3539, allocations: 48.71 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.28/7.634, allocations: 2.518 GB / 2.842 GB, free: 22.67 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/7.635, allocations: 86.14 kB / 2.842 GB, free: 22.62 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.416/10.05, allocations: 446.8 MB / 3.278 GB, free: 46.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.726e-06/10.05, allocations: 0 / 3.278 GB, free: 46.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001477/10.05, allocations: 34.22 kB / 3.278 GB, free: 46.75 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.01051/10.06, allocations: 2.439 MB / 3.281 GB, free: 45.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/10.06, allocations: 10.44 kB / 3.281 GB, free: 45.5 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007162/10.06, allocations: 198.9 kB / 3.281 GB, free: 45.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004359/10.07, allocations: 431.7 kB / 3.281 GB, free: 45.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003318/10.07, allocations: 1.013 MB / 3.282 GB, free: 45.03 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/10.07, allocations: 105.1 kB / 3.282 GB, free: 45.02 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003958/10.07, allocations: 134.2 kB / 3.282 GB, free: 45.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005727/10.08, allocations: 1.684 MB / 3.284 GB, free: 44.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.438e-05/10.08, allocations: 10.78 kB / 3.284 GB, free: 44.72 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000236/10.08, allocations: 53.88 kB / 3.284 GB, free: 44.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/10.08, allocations: 50.17 kB / 3.284 GB, free: 44.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005717/10.08, allocations: 1.369 MB / 3.286 GB, free: 44.7 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.01356/10.1, allocations: 7.651 MB / 3.293 GB, free: 40.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003782/10.1, allocations: 0.9166 MB / 3.294 GB, free: 40.15 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05367/10.15, allocations: 18.35 MB / 3.312 GB, free: 28.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/10.15, allocations: 45.61 kB / 3.312 GB, free: 28.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=71): time 3.937e-06/10.15, allocations: 0 / 3.312 GB, free: 28.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=93): time 0.05322/10.21, allocations: 6.128 MB / 3.318 GB, free: 27.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1957/10.4, allocations: 42.82 MB / 3.36 GB, free: 6.93 MB / 442.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.001558/10.4, allocations: 0.7751 MB / 3.36 GB, free: 6.246 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002527/10.4, allocations: 45.22 kB / 3.36 GB, free: 6.199 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004881/10.41, allocations: 0.7135 MB / 3.361 GB, free: 5.535 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004051/10.41, allocations: 331 kB / 3.361 GB, free: 5.242 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/10.41, allocations: 24 kB / 3.361 GB, free: 5.219 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/10.41, allocations: 368.5 kB / 3.362 GB, free: 4.867 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/10.41, allocations: 484.9 kB / 3.362 GB, free: 4.461 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/10.41, allocations: 0.9779 MB / 3.363 GB, free: 3.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/10.41, allocations: 0.6167 MB / 3.364 GB, free: 2.766 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/10.41, allocations: 4 kB / 3.364 GB, free: 2.762 MB / 442.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.005512/10.42, allocations: 1.716 MB / 3.366 GB, free: 1.215 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002435/10.42, allocations: 6.272 MB / 3.372 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.394e-05/10.42, allocations: 16 kB / 3.372 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008962/10.43, allocations: 1.025 MB / 3.373 GB, free: 9.637 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002098/10.43, allocations: 307.8 kB / 3.373 GB, free: 9.379 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/10.43, allocations: 1.627 MB / 3.375 GB, free: 7.789 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/10.44, allocations: 136.8 kB / 3.375 GB, free: 7.684 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003954/10.44, allocations: 85.89 kB / 3.375 GB, free: 7.609 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/10.44, allocations: 4 kB / 3.375 GB, free: 7.605 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00833/10.45, allocations: 1.862 MB / 3.377 GB, free: 5.941 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.707e-05/10.45, allocations: 16 kB / 3.377 GB, free: 5.926 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005072/10.45, allocations: 0.6768 MB / 3.377 GB, free: 5.371 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002087/10.45, allocations: 317.6 kB / 3.378 GB, free: 5.105 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003537/10.46, allocations: 1.583 MB / 3.379 GB, free: 3.551 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/10.46, allocations: 129.9 kB / 3.379 GB, free: 3.449 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/10.46, allocations: 81.7 kB / 3.379 GB, free: 3.379 MB / 458.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.001303/10.46, allocations: 427.6 kB / 3.38 GB, free: 2.957 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004447/10.46, allocations: 114.6 kB / 3.38 GB, free: 2.844 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3507/10.81, allocations: 3.72 MB / 3.383 GB, free: 51.26 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007262/10.82, allocations: 3.176 MB / 3.387 GB, free: 51.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/10.82, allocations: 1.062 kB / 3.387 GB, free: 51.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-05/10.82, allocations: 2.156 kB / 3.387 GB, free: 51.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/10.83, allocations: 5.93 MB / 3.392 GB, free: 50.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/10.83, allocations: 6.094 kB / 3.392 GB, free: 50.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/10.84, allocations: 174.8 kB / 3.393 GB, free: 50.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008304/10.84, allocations: 1.656 MB / 3.394 GB, free: 50.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002461/10.84, allocations: 37.52 kB / 3.394 GB, free: 50.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004505/10.85, allocations: 2.407 MB / 3.397 GB, free: 49.55 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1093/10.96, allocations: 24.66 MB / 3.421 GB, free: 45.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008566/10.97, allocations: 3.915 MB / 3.424 GB, free: 44.78 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/10.97, allocations: 402.2 kB / 3.425 GB, free: 44.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003079/10.97, allocations: 21.5 kB / 3.425 GB, free: 44.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/10.97, allocations: 100.3 kB / 3.425 GB, free: 44.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/10.97, allocations: 76.86 kB / 3.425 GB, free: 44.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/10.97, allocations: 44.11 kB / 3.425 GB, free: 44.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001375/10.97, allocations: 0.6418 MB / 3.426 GB, free: 44.48 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.42e-07/10.97, allocations: 0 / 3.426 GB, free: 44.48 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0187/10.99, allocations: 3.983 MB / 3.43 GB, free: 44.48 MB / 458.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.04323/11.03, allocations: 7.592 MB / 3.437 GB, free: 43.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008184/11.04, allocations: 2.525 MB / 3.439 GB, free: 43.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/11.04, allocations: 1.688 kB / 3.439 GB, free: 43.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003216/11.04, allocations: 1.182 MB / 3.441 GB, free: 43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003506/11.05, allocations: 385.5 kB / 3.441 GB, free: 42.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2899/11.34, allocations: 91.92 MB / 3.531 GB, free: 9.562 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001091/11.34, allocations: 1.437 MB / 3.532 GB, free: 8.363 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/11.34, allocations: 0.7367 MB / 3.533 GB, free: 7.688 MB / 458.7 MB Notification: Performance of SimCode: time 1.262e-06/11.34, allocations: 0 / 3.533 GB, free: 7.688 MB / 458.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: motor.Jr.