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 2.107/2.107, allocations: 209.2 MB / 224.8 MB, free: 0.6328 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004521/0.0004522, allocations: 12 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3574, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer): time 0.06678/0.4242, allocations: 39.15 MB / 370.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04029/0.4646, allocations: 18.62 MB / 389.1 MB, free: 4.629 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002638/0.4673, allocations: 47.69 kB / 389.1 MB, free: 4.582 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003631/0.471, allocations: 0.6453 MB / 389.7 MB, free: 3.934 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02165/0.4927, allocations: 4.398 MB / 394.1 MB, free: 15.52 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01421/0.5069, allocations: 3.006 MB / 397.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006413/0.5134, allocations: 1.828 MB / 399 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0029/0.5163, allocations: 0.9082 MB / 399.9 MB, free: 9.738 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004093/0.5205, allocations: 0.9536 MB / 400.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02542/0.546, allocations: 6.518 MB / 407.4 MB, free: 2.258 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006688/0.5467, allocations: 76 kB / 407.4 MB, free: 2.184 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03085/0.5776, allocations: 7.566 MB / 415 MB, free: 10.61 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007699/0.5784, allocations: 282.9 kB / 415.3 MB, free: 10.33 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009252/0.5793, allocations: 344.9 kB / 415.6 MB, free: 9.988 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01341/0.5928, allocations: 4.513 MB / 420.1 MB, free: 5.465 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5928, allocations: 0 / 420.1 MB, free: 5.465 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.5928, allocations: 0 / 420.1 MB, free: 5.465 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.642e-05/0.5929, allocations: 0 / 420.1 MB, free: 5.465 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.008042/0.601, allocations: 2.168 MB / 422.3 MB, free: 3.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.6011, allocations: 12.03 kB / 422.3 MB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005113/0.6016, allocations: 194.5 kB / 422.5 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003555/0.6051, allocations: 389.7 kB / 422.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002674/0.6079, allocations: 0.9066 MB / 423.8 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.6081, allocations: 110.6 kB / 423.9 MB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003088/0.6084, allocations: 135.9 kB / 424 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005765/0.6142, allocations: 1.677 MB / 425.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.63e-05/0.6143, allocations: 15.84 kB / 425.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002187/0.6145, allocations: 52 kB / 425.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.903e-05/0.6146, allocations: 50.36 kB / 425.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005845/0.6205, allocations: 1.375 MB / 427.2 MB, free: 14.17 MB / 362.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.01447/0.635, allocations: 7.596 MB / 434.8 MB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004006/0.6391, allocations: 0.8927 MB / 435.7 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06696/0.7061, allocations: 18.58 MB / 454.3 MB, free: 300 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.399e-05/0.7062, allocations: 43.16 kB / 454.3 MB, free: 248 kB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 4.028e-06/0.7062, allocations: 0 / 454.3 MB, free: 248 kB / 378.7 MB Notification: Performance of matching and sorting (n=93): time 0.05746/0.7637, allocations: 5.896 MB / 460.2 MB, free: 10.2 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.5747/1.338, allocations: 47.74 MB / 0.496 GB, free: 121.8 MB / 410.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.001671/1.34, allocations: 0.908 MB / 0.4969 GB, free: 121.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002099/1.34, allocations: 43.12 kB / 0.497 GB, free: 121.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004721/1.341, allocations: 0.72 MB / 0.4977 GB, free: 121 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000366/1.341, allocations: 331.6 kB / 0.498 GB, free: 120.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/1.341, allocations: 27.47 kB / 0.498 GB, free: 120.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/1.342, allocations: 360.9 kB / 0.4983 GB, free: 120.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/1.343, allocations: 485.8 kB / 0.4988 GB, free: 120.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002052/1.345, allocations: 0.9774 MB / 0.4998 GB, free: 119.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/1.347, allocations: 0.6063 MB / 0.5004 GB, free: 119.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/1.348, allocations: 7.594 kB / 0.5004 GB, free: 119.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005739/1.353, allocations: 1.709 MB / 0.502 GB, free: 118.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003225/1.354, allocations: 0.5547 MB / 0.5026 GB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/1.354, allocations: 18.72 kB / 0.5026 GB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009126/1.363, allocations: 1.068 MB / 0.5036 GB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/1.365, allocations: 304.2 kB / 0.5039 GB, free: 117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003184/1.368, allocations: 1.628 MB / 0.5055 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002288/1.37, allocations: 131.6 kB / 0.5056 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/1.371, allocations: 79.97 kB / 0.5057 GB, free: 115.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/1.371, allocations: 3.656 kB / 0.5057 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007208/1.378, allocations: 1.868 MB / 0.5075 GB, free: 114.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.574e-05/1.378, allocations: 18.97 kB / 0.5076 GB, free: 114.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005031/1.383, allocations: 0.6784 MB / 0.5082 GB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/1.385, allocations: 303.5 kB / 0.5085 GB, free: 114.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002853/1.388, allocations: 1.59 MB / 0.5101 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/1.39, allocations: 131.8 kB / 0.5102 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/1.39, allocations: 79.95 kB / 0.5103 GB, free: 112.2 MB / 410.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 (149): * Single equations (assignments): 145 * 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.001024/1.391, allocations: 427 kB / 0.5107 GB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/1.392, allocations: 122.5 kB / 0.5108 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007774/1.399, allocations: 3.709 MB / 0.5144 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0065/1.406, allocations: 3.185 MB / 0.5175 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/1.406, allocations: 0 / 0.5175 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.513e-05/1.406, allocations: 3.984 kB / 0.5175 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/1.418, allocations: 6.004 MB / 0.5234 GB, free: 98.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/1.418, allocations: 3.984 kB / 0.5234 GB, free: 98.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/1.42, allocations: 179.9 kB / 0.5236 GB, free: 98.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007511/1.427, allocations: 1.598 MB / 0.5251 GB, free: 96.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002094/1.428, allocations: 23.98 kB / 0.5251 GB, free: 96.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004391/1.432, allocations: 2.422 MB / 0.5275 GB, free: 94.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09241/1.524, allocations: 24.77 MB / 0.5517 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008684/1.533, allocations: 3.873 MB / 0.5555 GB, free: 65.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/1.534, allocations: 402.3 kB / 0.5559 GB, free: 64.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003592/1.535, allocations: 23.94 kB / 0.5559 GB, free: 64.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/1.536, allocations: 99.81 kB / 0.556 GB, free: 64.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/1.537, allocations: 72.89 kB / 0.5561 GB, free: 64.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/1.537, allocations: 43.97 kB / 0.5561 GB, free: 64.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001302/1.538, allocations: 0.647 MB / 0.5567 GB, free: 63.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.538, allocations: 4 kB / 0.5567 GB, free: 63.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01639/1.555, allocations: 3.935 MB / 0.5606 GB, free: 60.02 MB / 410.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 ($cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse12.region3boundary,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.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 (82): * Single equations (assignments): 74 * 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.05199/1.607, allocations: 6.75 MB / 0.5672 GB, free: 53.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008275/1.615, allocations: 2.467 MB / 0.5696 GB, free: 51.06 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.615, allocations: 0 / 0.5696 GB, free: 51.06 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003318/1.618, allocations: 1.181 MB / 0.5707 GB, free: 49.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/1.622, allocations: 385.2 kB / 0.5711 GB, free: 49.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/1.644, allocations: 7.266 MB / 0.5782 GB, free: 41.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/1.645, allocations: 1.435 MB / 0.5796 GB, free: 40.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001393/1.646, allocations: 0.7258 MB / 0.5803 GB, free: 39.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/1.646, allocations: 0 / 0.5803 GB, free: 39.75 MB / 410.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: motor.Jr.