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 1.987/1.987, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004458/0.000446, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3505, allocations: 48.7 MB / 331.4 MB, free: 6.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.415/7.765, allocations: 2.518 GB / 2.841 GB, free: 78.28 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003494/7.766, allocations: 93.72 kB / 2.842 GB, free: 78.28 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.143/9.908, allocations: 446 MB / 3.277 GB, free: 58.22 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.226e-06/9.909, allocations: 0 / 3.277 GB, free: 58.22 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002015/9.909, allocations: 30.81 kB / 3.277 GB, free: 58.21 MB / 458.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.01057/9.919, allocations: 2.415 MB / 3.279 GB, free: 56.81 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/9.919, allocations: 10.97 kB / 3.279 GB, free: 56.81 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007602/9.92, allocations: 192.9 kB / 3.28 GB, free: 56.68 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004392/9.925, allocations: 428.9 kB / 3.28 GB, free: 56.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003359/9.928, allocations: 1.014 MB / 3.281 GB, free: 55.97 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/9.928, allocations: 102.3 kB / 3.281 GB, free: 55.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004757/9.929, allocations: 126.9 kB / 3.281 GB, free: 55.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005951/9.935, allocations: 1.655 MB / 3.283 GB, free: 55.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-05/9.935, allocations: 11.72 kB / 3.283 GB, free: 55.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002134/9.935, allocations: 53.69 kB / 3.283 GB, free: 55.08 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.869e-05/9.935, allocations: 56 kB / 3.283 GB, free: 55.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005745/9.941, allocations: 1.351 MB / 3.284 GB, free: 54.66 MB / 458.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.01489/9.956, allocations: 7.656 MB / 3.292 GB, free: 48.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003973/9.96, allocations: 0.9076 MB / 3.293 GB, free: 48.54 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05493/10.01, allocations: 18.35 MB / 3.311 GB, free: 36.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/10.01, allocations: 42.72 kB / 3.311 GB, free: 36.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=68): time 3.937e-06/10.01, allocations: 0 / 3.311 GB, free: 36.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.05989/10.07, allocations: 6.484 MB / 3.317 GB, free: 34.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.5694/10.64, allocations: 43.28 MB / 3.359 GB, free: 43.89 MB / 458.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.002005/10.65, allocations: 0.7816 MB / 3.36 GB, free: 43.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002553/10.65, allocations: 42.48 kB / 3.36 GB, free: 43.72 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006159/10.65, allocations: 0.7119 MB / 3.361 GB, free: 43.51 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005052/10.65, allocations: 322 kB / 3.361 GB, free: 43.36 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/10.65, allocations: 26.69 kB / 3.361 GB, free: 43.36 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/10.65, allocations: 361.5 kB / 3.361 GB, free: 43.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/10.65, allocations: 472.7 kB / 3.362 GB, free: 43.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002261/10.65, allocations: 0.9675 MB / 3.363 GB, free: 42.42 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/10.65, allocations: 0.5975 MB / 3.363 GB, free: 42.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.68e-05/10.65, allocations: 4.156 kB / 3.363 GB, free: 42.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.00661/10.66, allocations: 1.714 MB / 3.365 GB, free: 42.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001494/10.66, allocations: 6.363 MB / 3.371 GB, free: 35.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.583e-05/10.66, allocations: 15.41 kB / 3.371 GB, free: 35.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009219/10.67, allocations: 1.061 MB / 3.372 GB, free: 35.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/10.67, allocations: 300.5 kB / 3.373 GB, free: 35.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/10.68, allocations: 1.734 MB / 3.374 GB, free: 34.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002401/10.68, allocations: 120.1 kB / 3.374 GB, free: 34.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003932/10.68, allocations: 83.3 kB / 3.374 GB, free: 34.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/10.68, allocations: 8.781 kB / 3.374 GB, free: 34.64 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007517/10.69, allocations: 1.799 MB / 3.376 GB, free: 34.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.106e-05/10.69, allocations: 16.78 kB / 3.376 GB, free: 34.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004943/10.69, allocations: 0.698 MB / 3.377 GB, free: 34.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/10.7, allocations: 306.2 kB / 3.377 GB, free: 34.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003761/10.7, allocations: 1.684 MB / 3.379 GB, free: 33.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/10.7, allocations: 109.3 kB / 3.379 GB, free: 33.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002567/10.7, allocations: 87.22 kB / 3.379 GB, free: 33.53 MB / 458.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 (145): * Single equations (assignments): 143 * 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.001234/10.7, allocations: 417 kB / 3.379 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003987/10.7, allocations: 117.8 kB / 3.38 GB, free: 33.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009795/10.71, allocations: 3.856 MB / 3.383 GB, free: 33.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.803e-05/10.71, allocations: 39.27 kB / 3.383 GB, free: 33.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/10.71, allocations: 2.844 kB / 3.383 GB, free: 33.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.292e-05/10.71, allocations: 6.188 kB / 3.383 GB, free: 33.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/10.73, allocations: 5.924 MB / 3.389 GB, free: 32.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.1e-05/10.73, allocations: 3.344 kB / 3.389 GB, free: 32.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/10.73, allocations: 159.8 kB / 3.389 GB, free: 32.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008583/10.74, allocations: 1.723 MB / 3.391 GB, free: 32.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/10.74, allocations: 32.06 kB / 3.391 GB, free: 32.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004671/10.74, allocations: 2.434 MB / 3.393 GB, free: 31.36 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0927/10.84, allocations: 25.15 MB / 3.418 GB, free: 26.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/10.85, allocations: 3.934 MB / 3.422 GB, free: 26.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/10.85, allocations: 387.3 kB / 3.422 GB, free: 26.06 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004829/10.85, allocations: 23.23 kB / 3.422 GB, free: 26.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002228/10.86, allocations: 97.86 kB / 3.422 GB, free: 26.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003319/10.86, allocations: 77.88 kB / 3.422 GB, free: 26.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/10.86, allocations: 36.05 kB / 3.422 GB, free: 26.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01417/10.87, allocations: 0.6718 MB / 3.423 GB, free: 25.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.52e-07/10.87, allocations: 0 / 3.423 GB, free: 25.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.04224/10.91, allocations: 3.953 MB / 3.427 GB, free: 25.82 MB / 458.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 ($cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.region3boundary,$cse13.region3boundary,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.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 (75): * Single equations (assignments): 67 * 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.04754/10.96, allocations: 7.707 MB / 3.434 GB, free: 24.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008941/10.97, allocations: 2.451 MB / 3.437 GB, free: 24.19 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/10.97, allocations: 3.375 kB / 3.437 GB, free: 24.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003324/10.97, allocations: 1.14 MB / 3.438 GB, free: 24.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003628/10.98, allocations: 396.2 kB / 3.438 GB, free: 24.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2653/11.24, allocations: 91.94 MB / 3.528 GB, free: 204 kB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3825/11.62, allocations: 1.439 MB / 3.53 GB, free: 53.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/11.63, allocations: 0.7208 MB / 3.53 GB, free: 53.93 MB / 474.7 MB Notification: Performance of SimCode: time 9.22e-07/11.63, allocations: 0 / 3.53 GB, free: 53.93 MB / 474.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: motor.Jr.