Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04031/0.04031, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 221.4 MB / 246 MB, free: 3.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 90.17 kB / 299.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.766e-05/3.769e-05, allocations: 0 / 359.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3674, allocations: 52.54 MB / 412.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.636/1.003, allocations: 140 MB / 0.5392 GB, free: 37.26 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/1.004, allocations: 80.23 kB / 0.5393 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8763/1.88, allocations: 272 MB / 0.8049 GB, free: 34.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.88, allocations: 4 kB / 0.8049 GB, free: 34.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005472/1.881, allocations: 175.8 kB / 0.805 GB, free: 34.23 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.0271/1.908, allocations: 7.43 MB / 0.8123 GB, free: 26.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/1.908, allocations: 8.031 kB / 0.8123 GB, free: 26.76 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006009/1.914, allocations: 1.264 MB / 0.8135 GB, free: 25.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02277/1.937, allocations: 3.888 MB / 0.8173 GB, free: 21.63 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01787/1.955, allocations: 6.759 MB / 0.8239 GB, free: 14.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006397/1.955, allocations: 0.5711 MB / 0.8245 GB, free: 14.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003805/1.959, allocations: 0.7471 MB / 0.8252 GB, free: 13.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03315/1.992, allocations: 12.48 MB / 0.8374 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003877/1.993, allocations: 11.89 kB / 0.8374 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003134/1.996, allocations: 330.6 kB / 0.8377 GB, free: 0.5781 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.6868/2.683, allocations: 0.5953 MB / 0.8383 GB, free: 48.95 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02834/2.711, allocations: 11.33 MB / 0.8494 GB, free: 48.87 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07766/2.789, allocations: 43.61 MB / 0.892 GB, free: 40.1 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02197/2.811, allocations: 25.09 MB / 0.9165 GB, free: 18.32 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007383/2.818, allocations: 2.891 MB / 0.9193 GB, free: 17.2 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005395/2.819, allocations: 242.7 kB / 0.9195 GB, free: 17.01 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004268/2.823, allocations: 2.503 MB / 0.922 GB, free: 15.92 MB / 458.8 MB Notification: Performance of pre-optimization done (n=391): time 6.071e-06/2.823, allocations: 0 / 0.922 GB, free: 15.92 MB / 458.8 MB Notification: Performance of matching and sorting (n=397): time 0.02285/2.846, allocations: 13.75 MB / 0.9354 GB, free: 8.902 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/2.846, allocations: 357.7 kB / 0.9357 GB, free: 8.52 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004827/2.851, allocations: 3.086 MB / 0.9387 GB, free: 7.305 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007182/2.852, allocations: 91.7 kB / 0.9388 GB, free: 7.227 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001777/2.853, allocations: 3.372 MB / 0.9421 GB, free: 4.676 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001772/2.855, allocations: 1.353 MB / 0.9434 GB, free: 3.633 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/2.856, allocations: 111.2 kB / 0.9436 GB, free: 3.547 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003141/2.856, allocations: 0.5342 MB / 0.9441 GB, free: 3.141 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003489/2.859, allocations: 2.451 MB / 0.9465 GB, free: 2.172 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004689/2.864, allocations: 4.386 MB / 0.9507 GB, free: 14.78 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005198/2.869, allocations: 3.475 MB / 0.9541 GB, free: 13.45 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.435e-05/2.869, allocations: 19.03 kB / 0.9542 GB, free: 13.45 MB / 474.8 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01512/2.885, allocations: 8.081 MB / 0.9621 GB, free: 10.69 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.819e-05/2.885, allocations: 60.2 kB / 0.9621 GB, free: 10.66 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/2.885, allocations: 58.69 kB / 0.9622 GB, free: 10.66 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00278/2.888, allocations: 1.008 MB / 0.9631 GB, free: 10.45 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005256/2.893, allocations: 1.259 MB / 0.9644 GB, free: 10.41 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/2.905, allocations: 8.23 MB / 0.9724 GB, free: 5.711 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005539/2.911, allocations: 390 kB / 0.9728 GB, free: 5.414 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001078/2.912, allocations: 270.1 kB / 0.973 GB, free: 5.164 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (663): * Single equations (assignments): 661 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009597/2.913, allocations: 478.3 kB / 0.9735 GB, free: 4.77 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008642/2.914, allocations: 387.2 kB / 0.9739 GB, free: 4.387 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/2.925, allocations: 6.057 MB / 0.9798 GB, free: 15.38 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-05/2.925, allocations: 40 kB / 0.9798 GB, free: 15.34 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/2.925, allocations: 8 kB / 0.9798 GB, free: 15.33 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.787e-05/2.925, allocations: 23.08 kB / 0.9799 GB, free: 15.33 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02784/2.953, allocations: 14.93 MB / 0.9944 GB, free: 2.953 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.92e-05/2.953, allocations: 8.031 kB / 0.9944 GB, free: 2.945 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00297/2.956, allocations: 0.6769 MB / 0.9951 GB, free: 2.406 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002537/2.958, allocations: 0.8707 MB / 0.996 GB, free: 1.742 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004589/2.959, allocations: 90.8 kB / 0.996 GB, free: 1.66 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/2.97, allocations: 7.166 MB / 1.003 GB, free: 11.36 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/2.97, allocations: 4 kB / 1.003 GB, free: 11.36 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/2.985, allocations: 9.065 MB / 1.012 GB, free: 3.051 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002954/2.988, allocations: 0.9418 MB / 1.013 GB, free: 2.195 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009488/2.989, allocations: 83.95 kB / 1.013 GB, free: 2.113 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002461/2.991, allocations: 206.4 kB / 1.013 GB, free: 1.969 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005733/2.992, allocations: 273.6 kB / 1.013 GB, free: 1.793 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002391/2.992, allocations: 111.7 kB / 1.013 GB, free: 1.691 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004652/2.997, allocations: 2.345 MB / 1.016 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.61e-07/2.997, allocations: 0 / 1.016 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007146/3.004, allocations: 1.507 MB / 1.017 GB, free: 14.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.excitation.electroMagneticConverter.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01607/3.02, allocations: 11.23 MB / 1.028 GB, free: 3.895 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3411/3.361, allocations: 6.303 MB / 1.034 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/3.361, allocations: 2.906 kB / 1.034 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007047/3.368, allocations: 3.013 MB / 1.037 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00517/3.373, allocations: 0.7219 MB / 1.038 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03298/3.406, allocations: 14.16 MB / 1.052 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00579/3.412, allocations: 5.134 MB / 1.057 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005471/3.418, allocations: 1.671 MB / 1.058 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005016/3.423, allocations: 2.737 MB / 1.061 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.723e-06/3.423, allocations: 0 / 1.061 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/3.584, allocations: 113 MB / 1.172 GB, free: 54.73 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001503/3.584, allocations: 176.5 kB / 1.172 GB, free: 54.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.447/9.032, allocations: 0 / 1.172 GB, free: 54.5 MB / 0.5105 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)