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.01377/0.01377, allocations: 166.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.626/1.626, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.001982/0.001981, allocations: 111 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.4718/0.4718, allocations: 38.05 MB / 303.7 MB, free: 42.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000465/0.0004649, allocations: 12 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1052, allocations: 48.7 MB / 411.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.905/8.01, allocations: 2.518 GB / 2.92 GB, free: 101.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/8.01, allocations: 89.8 kB / 2.92 GB, free: 101.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.132/10.14, allocations: 446 MB / 3.355 GB, free: 11.13 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.415e-06/10.14, allocations: 0 / 3.355 GB, free: 11.13 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001121/10.14, allocations: 37.66 kB / 3.356 GB, free: 11.09 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: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.009962/10.15, allocations: 2.41 MB / 3.358 GB, free: 8.645 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/10.15, allocations: 12.03 kB / 3.358 GB, free: 8.633 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006357/10.15, allocations: 202.2 kB / 3.358 GB, free: 8.426 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00442/10.16, allocations: 425.7 kB / 3.358 GB, free: 8.008 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003248/10.16, allocations: 1.009 MB / 3.359 GB, free: 6.973 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/10.16, allocations: 106.6 kB / 3.36 GB, free: 6.867 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003633/10.16, allocations: 124 kB / 3.36 GB, free: 6.746 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005642/10.17, allocations: 1.662 MB / 3.361 GB, free: 4.977 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.89e-05/10.17, allocations: 4 kB / 3.361 GB, free: 4.973 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/10.17, allocations: 59.94 kB / 3.361 GB, free: 4.914 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-05/10.17, allocations: 50.27 kB / 3.361 GB, free: 4.863 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005645/10.17, allocations: 1.352 MB / 3.363 GB, free: 3.504 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.3567/10.53, allocations: 7.66 MB / 3.37 GB, free: 23.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004336/10.53, allocations: 0.8994 MB / 3.371 GB, free: 23.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05787/10.59, allocations: 18.35 MB / 3.389 GB, free: 27.78 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/10.59, allocations: 43.66 kB / 3.389 GB, free: 27.74 MB / 458.7 MB Notification: Performance of pre-optimization done (n=68): time 3.667e-06/10.59, allocations: 0 / 3.389 GB, free: 27.74 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.06086/10.65, allocations: 6.469 MB / 3.395 GB, free: 26.81 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2236/10.88, allocations: 43.3 MB / 3.438 GB, free: 21.27 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.00216/10.88, allocations: 0.7787 MB / 3.438 GB, free: 21.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002774/10.88, allocations: 40.48 kB / 3.438 GB, free: 21.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007059/10.88, allocations: 0.7114 MB / 3.439 GB, free: 20.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004613/10.88, allocations: 328.6 kB / 3.439 GB, free: 20.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/10.88, allocations: 26.38 kB / 3.439 GB, free: 20.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002212/10.88, allocations: 356.4 kB / 3.44 GB, free: 20.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/10.88, allocations: 473 kB / 3.44 GB, free: 20.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002589/10.89, allocations: 0.9732 MB / 3.441 GB, free: 19.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01512/10.9, allocations: 0.5923 MB / 3.442 GB, free: 19.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-05/10.9, allocations: 3.125 kB / 3.442 GB, free: 19.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.00971/10.91, allocations: 1.772 MB / 3.444 GB, free: 19.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003756/10.91, allocations: 6.363 MB / 3.45 GB, free: 28.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.394e-05/10.91, allocations: 22.53 kB / 3.45 GB, free: 28.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02718/10.94, allocations: 1.05 MB / 3.451 GB, free: 28.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/10.94, allocations: 304.5 kB / 3.451 GB, free: 28.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006146/10.95, allocations: 1.738 MB / 3.453 GB, free: 27.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00326/10.95, allocations: 114.5 kB / 3.453 GB, free: 27.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003334/10.95, allocations: 84.64 kB / 3.453 GB, free: 27.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/10.95, allocations: 2.969 kB / 3.453 GB, free: 27.7 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01028/10.96, allocations: 1.804 MB / 3.455 GB, free: 27.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.946e-05/10.96, allocations: 14.94 kB / 3.455 GB, free: 27.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008073/10.97, allocations: 0.7361 MB / 3.455 GB, free: 27.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/10.98, allocations: 306.4 kB / 3.456 GB, free: 27.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004205/10.98, allocations: 1.7 MB / 3.457 GB, free: 26.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/10.98, allocations: 108.7 kB / 3.458 GB, free: 26.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002309/10.98, allocations: 83.33 kB / 3.458 GB, free: 26.52 MB / 474.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.001371/10.98, allocations: 417.7 kB / 3.458 GB, free: 26.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/10.98, allocations: 119.2 kB / 3.458 GB, free: 26.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/10.99, allocations: 3.85 MB / 3.462 GB, free: 25.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.08e-05/10.99, allocations: 41.5 kB / 3.462 GB, free: 25.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/11, allocations: 3.953 kB / 3.462 GB, free: 25.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.391e-05/11, allocations: 6.703 kB / 3.462 GB, free: 25.96 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/11.01, allocations: 5.94 MB / 3.468 GB, free: 25.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/11.01, allocations: 0 / 3.468 GB, free: 25.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/11.01, allocations: 160.9 kB / 3.468 GB, free: 25.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008462/11.02, allocations: 1.713 MB / 3.47 GB, free: 25.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002387/11.02, allocations: 29.53 kB / 3.47 GB, free: 25.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005172/11.02, allocations: 2.437 MB / 3.472 GB, free: 24.22 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09038/11.12, allocations: 25.15 MB / 3.497 GB, free: 19.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009876/11.12, allocations: 3.925 MB / 3.5 GB, free: 17.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000963/11.13, allocations: 397.8 kB / 3.501 GB, free: 17.42 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/11.13, allocations: 25.66 kB / 3.501 GB, free: 17.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/11.13, allocations: 91.62 kB / 3.501 GB, free: 17.35 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/11.13, allocations: 74.91 kB / 3.501 GB, free: 17.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/11.13, allocations: 43.52 kB / 3.501 GB, free: 17.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001256/11.13, allocations: 0.6698 MB / 3.502 GB, free: 16.89 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.51e-07/11.13, allocations: 0 / 3.502 GB, free: 16.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01793/11.15, allocations: 3.948 MB / 3.505 GB, free: 13.43 MB / 474.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.044/11.19, allocations: 7.706 MB / 3.513 GB, free: 8.324 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009341/11.2, allocations: 2.453 MB / 3.515 GB, free: 6.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/11.2, allocations: 0 / 3.515 GB, free: 6.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003628/11.2, allocations: 1.128 MB / 3.516 GB, free: 6.266 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003635/11.21, allocations: 401.2 kB / 3.517 GB, free: 5.973 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6578/11.87, allocations: 93.73 MB / 3.608 GB, free: 50.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/11.87, allocations: 1.43 MB / 3.61 GB, free: 49.72 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002836/11.87, allocations: 0.7437 MB / 3.611 GB, free: 49.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001524/11.87, allocations: 0.7123 MB / 3.611 GB, free: 49.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/11.87, allocations: 4.688 kB / 3.611 GB, free: 49.7 MB / 490.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: motor.Jr.